// WorldInfo.H: WorldInfo nodes.

// This file has been generated using nodegen 0.5a.
// Restrict manual editing to the sections delimited by
// . the comments "utility includes" and "end of utility includes"
// . the comments "utility members" and "end of utility members"

#ifndef _WorldInfo_H_
#define _WorldInfo_H_

#include "xrml.H"
#include "Children.H"

// utility includes
// end of utility includes

namespace xrml {
#define WorldInfoTypeId 	"WorldInfo"
extern bool IsWorldInfo(SFNode*);

class WorldInfo: public virtual SFNode, public Children {
private:
  //
  void clone_here(const WorldInfo&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    info_updated = 0x1,
    title_updated = 0x2 
  };
  
public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  WorldInfo();
  WorldInfo(const WorldInfo&);
  WorldInfo& operator=(const WorldInfo&);
  virtual ~WorldInfo();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  MFString         	info;
  SFString         	title;
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_info(const MFString&);
  bool             	assign_title(const SFString&);
  
  // update status
  inline bool      	info_is_updated(void) { return (status & info_updated); }
  inline void      	info_clear_update(void) { status &= ~info_updated; }
  inline bool      	title_is_updated(void) { return (status & title_updated); }
  inline void      	title_clear_update(void) { status &= ~title_updated; }
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const WorldInfo& src) { }
  inline void util_destruct(void) { }
};

// end of utility members
} // namespace xrml
#endif /*_WorldInfo_H_*/
