29 int main (
int argc,
char **argv) {
38 lfdef1.
Read(
"data/largegen.rti");
41 std::cout <<
"################################\n";
42 std::cout <<
"# lua extension from rti file\n";
44 std::cout <<
"################################\n";
49 std::cout <<
"script seems ok\n";
51 std::cout << err <<
"\n";
59 std::cout <<
"# ERR: the two definitions should be equal\n";
64 std::cout <<
"################################\n";
65 std::cout <<
"# copy of lua extension\n";
67 std::cout <<
"################################\n";
90 std::cout <<
"################################\n";
91 std::cout <<
"# statistics \n";
93 std::cout <<
"################################\n";
104 lfdef3.
Read(
"data/xtractalph.rti");
113 std::cout <<
"################################\n";
114 std::cout <<
"# alphabet \n";
116 std::cout <<
"################################\n";
127 Type* vgen_ftype = ((
Type*)(vgen_vgen));
128 void* vgen_void = ((
void*)(vgen_vgen));
129 void* vgen_void_ftype = ((
void*)(vgen_ftype));
130 std::cout <<
"C++ casting of a Generator: " <<
131 " vgen at " << &vgen_vgen <<
", ftype at " << vgen_ftype <<
", void at " << vgen_void <<
132 ", void via ftype at " << vgen_void_ftype <<
"\n";
136 Type* cevs_ftype = ((
Type*)(cevs_cevs));
137 void* cevs_void = ((
void*)(cevs_cevs));
138 void* cevs_void_ftype = ( (
void*)(cevs_ftype));
139 void* cevs_dvoid_ftype = (
dynamic_cast<void*
>(cevs_ftype));
140 std::cout <<
"C++ casting a Alphabet: " <<
141 " cevs at " << &cevs_cevs <<
", ftype at " << cevs_ftype <<
", void at " << cevs_void <<
142 ", void via ftype at " << cevs_void_ftype <<
143 ", dynamic-void via ftype at " << cevs_dvoid_ftype <<
"\n";
#define FAUDES_TEST_DUMP(mes, dat)
Test protocol record macro ("mangle" filename for platform independance)
Function * NewFunction() const
Construct function on heap.
A faudes-function hosts parameter values of some faudes type and provides a method to perform an oper...
void Execute(void)
Perform operation.
void Variant(int n)
Set signature from function definition.
void ParamValue(int n, Type *param)
Set parameter at certain position.
A LuaFunctionDefinition is derived from FunctionDefinition to define a faudes-function by a Lua scrip...
std::string SyntaxCheck(void)
Syntax check lua code.
Set of indices with symbolic names.
Set of indices with symbolic names and attributes.
Base class of all libFAUDES objects that participate in the run-time interface.
void Read(const std::string &rFileName, const std::string &rLabel="", const Type *pContext=0)
Read configuration data from file with label specified.
void Write(const Type *pContext=0) const
Write configuration data to console.
void SWrite(TokenWriter &rTw) const
Write statistics comment to TokenWriter.
Base class of all FAUDES generators.
TaNameSet< AttributeCFlags > Alphabet
Convenience typedef for event sets with controllability attributes.
vGenerator Generator
Plain generator, api typedef for generator with no attributes.
void LoadRegistry(const std::string &rPath)
Load all registered types and functions.
int main(int argc, char **argv)
Includes all libFAUDES headers, incl plugings
libFAUDES resides within the namespace faudes.