12 #include "PlusConfigure.h" 14 #include "vtkSmartPointer.h" 15 #include "vtksys/CommandLineArguments.hxx" 16 #include "vtkXMLUtilities.h" 22 int main(
int argc,
char** argv )
27 std::string inputConfigFileName;
28 std::string inputVideoBufferMetafile;
29 std::string inputTrackerBufferMetafile;
30 int verboseLevel = vtkPlusLogger::LOG_LEVEL_UNDEFINED;
32 vtksys::CommandLineArguments args;
33 args.Initialize( argc, argv );
35 args.AddArgument(
"--config-file", vtksys::CommandLineArguments::EQUAL_ARGUMENT,
36 &inputConfigFileName,
"Name of the input configuration file." );
37 args.AddArgument(
"--verbose", vtksys::CommandLineArguments::EQUAL_ARGUMENT,
38 &verboseLevel,
"Verbose level (1=error only, 2=warning, 3=info, 4=debug 5=trace)" );
42 std::cerr <<
"Problem parsing arguments." << std::endl;
43 std::cout <<
"Help: " << args.GetHelp() << std::endl;
50 vtkSmartPointer<vtkXMLDataElement> configRootElement = vtkSmartPointer<vtkXMLDataElement>::New();
53 LOG_ERROR(
"Unable to read configuration from file " << inputConfigFileName.c_str());
59 vtkSmartPointer<vtkPlusDataCollector> dataCollector = vtkSmartPointer<vtkPlusDataCollector>::New();
61 dataCollector->ReadConfiguration( configRootElement );
63 LOG_DEBUG(
"Initializing data collector... " );
64 dataCollector->Connect();
68 dataCollector->Disconnect();
static vtkPlusConfig * GetInstance()
int main(int argc, char **argv)
static vtkIGSIOLogger * Instance()
void SetDeviceSetConfigurationData(vtkXMLDataElement *deviceSetConfigurationData)
static PlusStatus ReadDeviceSetConfigurationFromFile(vtkXMLDataElement *config, const char *filename)