]> git.tdb.fi Git - builder.git/blob - source/action.cpp
Reorder class members
[builder.git] / source / action.cpp
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007, 2009  Mikko Rasa, Mikkosoft Productions
5 Distributed under the LGPL
6 */
7
8 #include <iomanip>
9 #include <iostream>
10 #include <sstream>
11 #include "action.h"
12
13 using namespace std;
14
15 void Action::announce(const string &pkg, const string &tool, const string &tgt)
16 {
17         ostringstream line;
18         line<<left;
19         line<<'['<<setw(10)<<pkg.substr(0, 10)<<"] ";
20         line<<'['<<setw(4)<<tool<<"] ";
21         line<<tgt;
22         cout<<line.str()<<'\n';
23 }