]> git.tdb.fi Git - builder.git/blob - source/action.cpp
Add comments
[builder.git] / source / action.cpp
1 #include <iomanip>
2 #include <iostream>
3 #include <sstream>
4 #include "action.h"
5
6 using namespace std;
7
8 /**
9 Annouces the action by printing out the package name, tool and target name.
10 */
11 void Action::announce(const string &pkg, const string &tool, const string &tgt)
12 {
13         ostringstream line;
14         line<<left;
15         line<<'['<<setw(10)<<pkg.substr(0, 10)<<"] ";
16         line<<'['<<setw(4)<<tool<<"] ";
17         line<<tgt;
18         cout<<line.str()<<'\n';
19 }