16 #include "Riostream.h"
27 fxPreviousData(0), fxCanvas(0)
29 GO4TRACE((15,
"TGo4ExampleController::TGo4ExampleController() constructor",__LINE__, __FILE__));
30 fxCanvas=
new TCanvas(
"Example Display",
"Go4 controller canvas",3);
35 GO4TRACE((15,
"TGo4ExampleController::~TGo4ExampleController() destructor",__LINE__, __FILE__));
42 GO4TRACE((12,
"TGo4ExampleController::DisplayData(TNamed*)",__LINE__, __FILE__));
47 std::cout <<
"ExampleController received data object:"<<std::endl;
48 std::cout <<
"Classname:"<< data->ClassName()<<
", Name:" << data->GetName()<< std::endl;
56 std::cout <<
"ExampleController has NULL data object"<<std::endl;
62 GO4TRACE((12,
"TGo4ExampleController::DisplayLog(TGo4Status*)",__LINE__, __FILE__));
65 std::cout <<
"ExampleController received status object:"<<std::endl;
66 if(status->InheritsFrom(
"TGo4ExampleClientStatus"))
72 std::cout << status->GetName()<< std::endl;
78 std::cout <<
"ExampleController has NULL status object"<<std::endl;
85 GO4TRACE((12,
"TGo4ExampleController::GetCommand()",__LINE__, __FILE__));
virtual ~TGo4ExampleController()
virtual Int_t PrintStatus(Text_t *buffer=0, Int_t buflen=0)
TGo4Command * GetCommand()
void DisplayData(TObject *)
void DisplayLog(TGo4Status *)