Limbo 3.5.4
Loading...
Searching...
No Matches
test_adapt.cpp File Reference

test def parser, see DefParser::Driver and DefParser::DefDataBase More...

#include <iostream>
#include <fstream>
#include <limbo/parsers/def/adapt/DefDriver.h>

Go to the source code of this file.

Classes

class  DefDataBase
 Custom class that inheritates DefParser::DefDataBase with all the required callbacks defined. More...

Functions

void test1 (string const &filename)
 test 1: use function wrapper DefParser::read
void test2 (string const &filename)
 test 2: use class wrapper DefParser::Driver
int main (int argc, char **argv)
 main function

Detailed Description

test def parser, see DefParser::Driver and DefParser::DefDataBase

Author
Yibo Lin
Date
Oct 2014

Definition in file test_adapt.cpp.

Function Documentation

◆ main()

int main ( int argc,
char ** argv )

main function

Parameters
argcnumber of arguments
argvvalues of arguments
Returns
0

Definition at line 165 of file test_adapt.cpp.

◆ test1()

void test1 ( string const & filename)

test 1: use function wrapper DefParser::read

Definition at line 142 of file test_adapt.cpp.

◆ test2()

void test2 ( string const & filename)

test 2: use class wrapper DefParser::Driver

Definition at line 150 of file test_adapt.cpp.