mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
41f151f2ee
Adding another file to example that shows 2 files in same namespace.
34 lines
493 B
C++
34 lines
493 B
C++
/**
|
|
@file
|
|
|
|
@verbatim
|
|
PURPOSE: (Namespace Test)
|
|
PYTHON_MODULE: (Foo)
|
|
@endverbatim
|
|
*******************************************************************************/
|
|
|
|
#ifndef FOOYUMMYFOOD_HH
|
|
#define FOOYUMMYFOOD_HH
|
|
|
|
#include <iostream>
|
|
|
|
namespace Foo {
|
|
|
|
enum Yummy {
|
|
Butter,
|
|
Bacon,
|
|
Doughnuts
|
|
};
|
|
|
|
class YummyFood {
|
|
public:
|
|
YummyFood() : yummy(Bacon) {}
|
|
void print_me() { std::cout << "Foo::YummyFood::print_me!" << std::endl; }
|
|
Yummy yummy;
|
|
};
|
|
|
|
}
|
|
|
|
#endif /* _BALL_HH_ */
|
|
|