pex_tutorial.cpp
Go to the documentation of this file.
1 /** @file pex_tutorial.cpp
2 
3 Tutorial, example plugin. This tutorial demonstrates
4 how to organize tutorials in plugins.
5 
6 @ingroup Tutorials
7 
8 @include pex_tutorial.cpp
9 
10 */
11 
12 #include "libfaudes.h"
13 
14 // make the faudes namespace available to our program
15 using namespace faudes;
16 
17 
18 /** Run the tutorial */
19 int main() {
20 
21  // read generator from file
22  Generator gen("data/g_notacc.gen");
23 
24  // run algorithm
26 
27  // write result
28  gen.Write("tmp_altacc.gen");
29 
30  // Record test case
31  FAUDES_TEST_DUMP("test alt access",gen)
32 
33  // Validate result
35 
36  // done
37  return 0;
38 }
39 
40 
41 
#define FAUDES_TEST_DIFF()
Test protocol diff macro.
Definition: cfl_helper.h:493
#define FAUDES_TEST_DUMP(mes, dat)
Test protocol record macro ("mangle" filename for platform independance)
Definition: cfl_helper.h:483
void Write(const Type *pContext=0) const
Write configuration data to console.
Definition: cfl_types.cpp:139
Base class of all FAUDES generators.
void AlternativeAccessible(Generator &rGen)
Alternative accessibility algorithm.
Includes all libFAUDES headers, incl plugings
libFAUDES resides within the namespace faudes.
int main()
Run the tutorial.

libFAUDES 2.32b --- 2024.03.01 --- c++ api documentaion by doxygen