ERAV: Entity Relation Attribute Value:
Classes | Defines | Functions | Variables
test_ERAV.cpp File Reference

Test -> ERAV -> erav2xml() -> xml2erav(). More...

#include "ERAV.h"
#include <fstream>
#include <iomanip>
#include <iostream>

Go to the source code of this file.

Classes

struct  yylex_state

Defines

#define mktuple(id, rel, sub, t, a, v)   L.push_back( make_tuple(id,rel,sub,t,a,v) )
#define DIM(V)   (sizeof(V)/sizeof(*V))

Functions

void lexeme_line (int token, const yylex_state &yy)
int test_yylex (const char *file)
ERAV::tuple make_tuple (int id, int rel, int sub, char t, int attrib, std::string val)
void megaload (std::list< ERAV::tuple > &L, ERAV::WORD &W, ERAV::WORD &S)
void dump_tuples (const std::list< ERAV::tuple > &L)
void dump_words (const char *name, const ERAV::WORD &W)
void do_megaload ()
int do_file (const char *name)
void load_XML (std::string file, std::list< ERAV::tuple > &L, ERAV::WORD &W, ERAV::WORD &S)
void do_tuple ()
int main (int argc, char **argv)

Variables

const std::string TD = "test/"

Detailed Description

Test -> ERAV -> erav2xml() -> xml2erav().

THIS IS PUBLIC DOMAIN SOFTWARE.

Author:
Adolfo Di Mare <adolfo@di-mare.com>
Date:
2010.

Definition in file test_ERAV.cpp.


Define Documentation

#define mktuple (   id,
  rel,
  sub,
  t,
  a,
 
)    L.push_back( make_tuple(id,rel,sub,t,a,v) )
#define DIM (   V)    (sizeof(V)/sizeof(*V))

Function Documentation

void lexeme_line ( int  token,
const yylex_state yy 
)

Definition at line 44 of file test_ERAV.cpp.

int test_yylex ( const char *  file)

Definition at line 55 of file test_ERAV.cpp.

ERAV::tuple make_tuple ( int  id,
int  rel,
int  sub,
char  t,
int  attrib,
std::string  val 
)

Definition at line 78 of file test_ERAV.cpp.

void megaload ( std::list< ERAV::tuple > &  L,
ERAV::WORD W,
ERAV::WORD S 
)

Definition at line 92 of file test_ERAV.cpp.

void dump_tuples ( const std::list< ERAV::tuple > &  L)

Definition at line 186 of file test_ERAV.cpp.

void dump_words ( const char *  name,
const ERAV::WORD W 
)

Definition at line 196 of file test_ERAV.cpp.

void do_megaload ( )

Definition at line 211 of file test_ERAV.cpp.

int do_file ( const char *  name)

Definition at line 224 of file test_ERAV.cpp.

void load_XML ( std::string  file,
std::list< ERAV::tuple > &  L,
ERAV::WORD W,
ERAV::WORD S 
)

Definition at line 269 of file test_ERAV.cpp.

void do_tuple ( )

Definition at line 289 of file test_ERAV.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 340 of file test_ERAV.cpp.


Variable Documentation

const std::string TD = "test/"

Definition at line 209 of file test_ERAV.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerator Friends Defines