// 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 #ifndef _Standard_HeaderFile #include #endif #ifndef _Standard_Macro_HeaderFile #include #endif #ifndef _TCollection_AsciiString_HeaderFile #include #endif #ifndef _Standard_OStream_HeaderFile #include #endif 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: void* operator new(size_t,void* anAddress) { return anAddress; } void* operator new(size_t size) { return Standard::Allocate(size); } void operator delete(void *anAddress) { if (anAddress) Standard::Free((Standard_Address&)anAddress); } //! Adds "DEF " in anOStream (VRML file).
Standard_EXPORT Vrml_Instancing(const TCollection_AsciiString& aString); //! Adds "USE " 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; }; // other Inline functions and methods (like "C++: function call" methods) #endif