Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:32

0001 // Created on: 2006-10-08
0002 // Created by: Alexander GRIGORIEV
0003 // Copyright (c) 2006-2014 OPEN CASCADE SAS
0004 //
0005 // This file is part of Open CASCADE Technology software library.
0006 //
0007 // This library is free software; you can redistribute it and/or modify it under
0008 // the terms of the GNU Lesser General Public License version 2.1 as published
0009 // by the Free Software Foundation, with special exception defined in the file
0010 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0011 // distribution for complete text of the license and disclaimer of any warranty.
0012 //
0013 // Alternatively, this file may be used under the terms of Open CASCADE
0014 // commercial license or contractual agreement.
0015 
0016 #ifndef VrmlData_UnknownNode_HeaderFile
0017 #define VrmlData_UnknownNode_HeaderFile
0018 
0019 #include <VrmlData_Node.hxx>
0020 #include <TCollection_AsciiString.hxx>
0021 
0022 /**
0023  * Definition of UnknownNode -- placeholder for node types that
0024  * are not processed now.
0025  */
0026 
0027 class VrmlData_UnknownNode : public VrmlData_Node
0028 {
0029  public:
0030   // ---------- PUBLIC METHODS ----------
0031 
0032   /**
0033    * Empty Constructor.
0034    */
0035   inline VrmlData_UnknownNode () {}
0036 
0037   /**
0038    * Constructor.
0039    */
0040   inline VrmlData_UnknownNode           (const VrmlData_Scene& theScene,
0041                                          const char            * theName = 0L,
0042                                          const char            * theTitle= 0L)
0043     : VrmlData_Node     (theScene, theName)
0044   { if (theTitle) myTitle = (Standard_CString)theTitle; }
0045 
0046   /**
0047    * Read the unknown node, till the last closing brace of it.
0048    */
0049   Standard_EXPORT virtual VrmlData_ErrorStatus
0050                         Read            (VrmlData_InBuffer& theBuffer) Standard_OVERRIDE;
0051 
0052   /**
0053    * Query the title of the unknown node.
0054    */
0055   inline const TCollection_AsciiString&
0056                         GetTitle        () const
0057   { return myTitle; }
0058 
0059   /**
0060    * Check if the Node is non-writeable -- always returns true.
0061    */
0062   Standard_EXPORT virtual Standard_Boolean
0063                         IsDefault       () const Standard_OVERRIDE;
0064 
0065  private:
0066   // ---------- PRIVATE FIELDS ----------
0067 
0068   TCollection_AsciiString myTitle;
0069 
0070  public:
0071 // Declaration of CASCADE RTTI
0072 DEFINE_STANDARD_RTTI_INLINE(VrmlData_UnknownNode,VrmlData_Node)
0073 };
0074 
0075 // Definition of HANDLE object using Standard_DefineHandle.hxx
0076 DEFINE_STANDARD_HANDLE (VrmlData_UnknownNode, VrmlData_Node)
0077 
0078 
0079 #endif