]> git.tdb.fi Git - builder.git/blob - source/action.cpp
Add Id tag to all files
[builder.git] / source / action.cpp
1 /* $Id$
2
3 This file is part of builder
4 Copyright © 2006-2007 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 /**
16 Annouces the action by printing out the package name, tool and target name.
17 */
18 void Action::announce(const string &pkg, const string &tool, const string &tgt)
19 {
20         ostringstream line;
21         line<<left;
22         line<<'['<<setw(10)<<pkg.substr(0, 10)<<"] ";
23         line<<'['<<setw(4)<<tool<<"] ";
24         line<<tgt;
25         cout<<line.str()<<'\n';
26 }