// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _Vrml_Instancing_HeaderFile
#define _Vrml_Instancing_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Macro.hxx>

#include <TCollection_AsciiString.hxx>
#include <Standard_OStream.hxx>
class TCollection_AsciiString;


//! defines  "instancing" - using  the  same  instance  of  a  node
//! multiple  times.
//! It  is  accomplished  by  using  the  "DEF"  and  "USE"  keywords.
//! The  DEF  keyword  both  defines  a  named  node,  and  creates  a  single
//! instance  of  it.
//! The  USE  keyword  indicates  that  the  most  recently  defined  instance
//! should  be  used  again.
//! If  several  nades  were  given  the  same  name,  then  the  last  DEF
//! encountered  during  parsing  "wins".
//! DEF/USE  is  limited  to  a  single  file.
class Vrml_Instancing 
{
public:

  DEFINE_STANDARD_ALLOC

  
  //! Adds "DEF  <myName>" in  anOStream  (VRML  file).
  Standard_EXPORT Vrml_Instancing(const TCollection_AsciiString& aString);
  
  //! Adds "USE  <myName>" in  anOStream (VRML  file).
  Standard_EXPORT   Standard_OStream& DEF (Standard_OStream& anOStream)  const;
  
  Standard_EXPORT   Standard_OStream& USE (Standard_OStream& anOStream)  const;




protected:





private:



  TCollection_AsciiString myName;


};







#endif // _Vrml_Instancing_HeaderFile
