torc-master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
testParse.cpp File Reference
+ Include dependency graph for testParse.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

Definition at line 21 of file testParse.cpp.

21  {
22  typedef std::string string;
23 
24  if (argc != 3) {
25  std::cout << "Usage: " << argv[0] << " <input xdlrc file>" << " <output xdlrc file>" <<std::endl;
26  return 1;
27  }
28 
29  ParsePrimitive parser;
30  std::cout << "\n\nReading " <<argv[1] << std::endl;
31  PrimitiveSetSharedPtr ps = parser.ParsePrimitiveFile(argv[1]);
32  std::cout << "DONE!" << std::endl;
33 
34  WritePrimitive writer;
35  std::cout << "\n\nwriting into " <<argv[2] << std::endl;
36  writer.WritePrimitiveFile(argv[2],ps);
37  std::cout << "DONE!" << std::endl;
38 
39 
40  return 0;
41 }
boost::shared_ptr< PrimitiveSet > PrimitiveSetSharedPtr
Shared pointer encapsulation of a PrimitiveSet.
void WritePrimitiveFile(const char *outFileName, PrimitiveSetSharedPtr primitives)
write an XDLRC file
std::string string
PrimitiveSetSharedPtr ParsePrimitiveFile(const char *inFileName)
parse an XDLRC file

+ Here is the call graph for this function: