// PhBAtmosphere.H: PhBAtmosphere 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 _PhBAtmosphere_H_
#define _PhBAtmosphere_H_

#include "xrml.H"
#include "Bindable.H"
#include "Children.H"
#include "PhBMedium.H"

// utility includes
// end of utility includes

namespace xrml {
#define PhBAtmosphereTypeId 	"PhBAtmosphere"
extern bool IsPhBAtmosphere(SFNode*);

class PhBAtmosphere: public virtual SFNode, public Bindable, public Children {
private:
  //
  void clone_here(const PhBAtmosphere&);
  void destruct(void);
  
  // field/eventOut update status bits
  // Use xxx_is_updated() and xxx_clear_update() to inspect/reset.
  enum status_bits {
    isBound_updated = 0x1,
    medium_updated = 0x2 
  };
  
protected:
  // raw children nodes (can be PROTO) + synchronize methods:
  SFNode* 	_medium;
  void 	synchronize_medium(void);

  // raw eventOut posting:
  void post_isBound(void);

public:
  //
  int major_version(void), minor_version(void);
  bool is_leaf_class(void);
  
  PhBAtmosphere();
  PhBAtmosphere(const PhBAtmosphere&);
  PhBAtmosphere& operator=(const PhBAtmosphere&);
  virtual ~PhBAtmosphere();
  
  //
  SFNode*          	instantiate(Proto * =0);
  void             	render(void);
  
  // state values:
  // Do not assign directly unless you know very well what you are doing.
  PhBMedium*       	medium;
  
  // eventIns:
  void             	set_bind(const SFBool&);
  
  // set_<exposedField> eventIns: with forwarding and eventOut generation
  void             	set_medium(SFNode*);
  
  // field assignement: no forwarding or eventOut generation!
  bool             	assign_medium(SFNode*);
  
  // eventOuts:
  //  SFBool            	isBound;
  void             	post_isBound(const SFBool& val);
  
  // update status
  inline bool      	isBound_is_updated(void) { return (status & isBound_updated); }
  inline void      	isBound_clear_update(void) { status &= ~isBound_updated; }
  inline bool      	medium_is_updated(void) { return (status & medium_updated); }
  inline void      	medium_clear_update(void) { status &= ~medium_updated; }
  
  // utility members
  
protected:
  inline void util_init(void) { }
  inline void util_clone(const PhBAtmosphere& src) { }
  inline void util_destruct(void) { }
};

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