blob: 52b798b13cb0664ca407ee2957e34817b1203764 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
#include <stdio.h>
#include "viewerplain.h"
#include "perform.h"
ViewerPlain::ViewerPlain()
{
}
ViewerPlain::~ViewerPlain()
{
}
void ViewerPlain::beginTarget( const char *sName, const char *sType, const char *sOperation, int nPerforms )
{
sAction = sName;
bPrinted = false;
}
void ViewerPlain::printHead()
{
if( bPrinted == false )
{
printf("--- %s ---\n", sAction.getString() );
bPrinted = true;
}
}
void ViewerPlain::endTarget()
{
if( bPrinted == true )
{
printf("\n");
}
else
{
printf("Nothing to be done for %s.\n", sAction.getString() );
}
}
void ViewerPlain::beginPerform( Perform *pPerf )
{
sTarget = pPerf->getTarget();
}
void ViewerPlain::beginExtraRequiresCheck( const char *sCommand )
{
printHead();
printf(" check: %s\n", sTarget.getString() );
}
void ViewerPlain::beginExecute()
{
printHead();
printf(" build: %s\n", sTarget.getString() );
}
void ViewerPlain::executeCmd( const char *sCmd )
{
//printf("--> %s\n", sCmd );
}
|