Noise Modeler Library  0.1
Library for procedurally generating noise-based terrains and other content
 All Classes Files Functions Variables Enumerations Enumerator Groups Pages
simplebodygenerator.hpp
1 #ifndef NM_SIMPLEBODYGENERATOR_HPP
2 #define NM_SIMPLEBODYGENERATOR_HPP
3 
4 #include <nmlib/codegeneration/bodygenerator.hpp>
5 
6 namespace nm {
7 
13 {
14 public:
15  SimpleBodyGenerator(std::string body):
16  m_body(body){
17  }
18 
19  // BodyGenerator interface
20  virtual void generateBody(InlineGenerator &/*gen*/, std::ostream &out){out << m_body;}
21 
22 private:
23  std::string m_body;
24 };
25 
26 } // namespace nm
27 
28 #endif // NM_SIMPLEBODYGENERATOR_HPP
The SimpleBodyGenerator class.
Definition: simplebodygenerator.hpp:12
Abstract base class for code generators.
Definition: inlinegenerator.hpp:34
Generates a module body.
Definition: bodygenerator.hpp:14