trick/test/SIM_python_namespace/models/FooFood.hh
Alex Lin 62948308b6 Adding back a lost capability, but better this time. The user can now
specify a python module name where the class and functions will be
visible in python.  With care the user can mimic the C++ namespaces their
models reside in, but it isn't perfect nor automatic.  It's still pretty
neat.
2019-03-13 16:17:08 -05:00

34 lines
458 B
C++

/**
@file
@verbatim
PURPOSE: (Namespace Test)
PYTHON_MODULE: (Foo)
@endverbatim
*******************************************************************************/
#ifndef FOOFOOD_HH
#define FOOFOOD_HH
#include <iostream>
namespace Foo {
enum Fast {
Taco,
Pizza,
Burger
};
class Food {
public:
Food() : fast(Taco) {}
void print_me() { std::cout << "Foo::Food::print_me!" << std::endl; }
Fast fast;
};
}
#endif /* _BALL_HH_ */