Limbo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
test_spirit.cpp
Go to the documentation of this file.
1 
8 #include <iostream>
9 #include <string>
10 
12 
13 using std::cout;
14 using std::endl;
15 using std::string;
16 
20 {
25  void add_tf_layer_id(string const& s1, int32_t const& s2, string const& s3)
26  {
27  cout << __func__ << endl;
28  cout << s1 << ", " << s2 << ", " << s3 << endl;
29  }
30 };
31 
33 void test1(string const& filename)
34 {
35  cout << "////////////// test1 ////////////////" << endl;
36  TfDataBase db;
37  TfParser::read(db, filename);
38 }
39 
44 int main(int argc, char** argv)
45 {
46 
47  if (argc > 1)
48  {
49  test1(argv[1]);
50  }
51  else
52  cout << "at least 1 argument is required" << endl;
53 
54  return 0;
55 }
tf parser for technology file
Custom class that inheritates TfParser::TfDataBase with all the required callbacks defined...
Definition: test_spirit.cpp:19
void test1(string const &filename)
test 1: use function wrapper TfParser::read
Definition: test_spirit.cpp:33
static bool read(DataBaseType &db, const string &tfFile)
API to read tf file.
Definition: TfParser.h:199
int main(int argc, char **argv)
main function
Definition: test_spirit.cpp:44
void add_tf_layer_id(string const &s1, int32_t const &s2, string const &s3)
add layer name, layer id, layer abbreviation
Definition: test_spirit.cpp:25
Base class for tf database. Only pure virtual functions are defined. User needs to inheritate this cl...
Definition: TfParser.h:61