1 // Created on: 2006-10-08
2 // Created by: Alexander GRIGORIEV
3 // Copyright (c) 2006-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef VrmlData_UnknownNode_HeaderFile
17 #define VrmlData_UnknownNode_HeaderFile
19 #include <VrmlData_Node.hxx>
20 #include <TCollection_AsciiString.hxx>
23 * Definition of UnknownNode -- placeholder for node types that
24 * are not processed now.
27 class VrmlData_UnknownNode : public VrmlData_Node
30 // ---------- PUBLIC METHODS ----------
35 inline VrmlData_UnknownNode () {}
40 inline VrmlData_UnknownNode (const VrmlData_Scene& theScene,
41 const char * theName = 0L,
42 const char * theTitle= 0L)
43 : VrmlData_Node (theScene, theName)
44 { if (theTitle) myTitle = (Standard_CString)theTitle; }
47 * Read the unknown node, till the last closing brace of it.
49 Standard_EXPORT virtual VrmlData_ErrorStatus
50 Read (VrmlData_InBuffer& theBuffer) Standard_OVERRIDE;
53 * Query the title of the unknown node.
55 inline const TCollection_AsciiString&
60 * Check if the Node is non-writeable -- always returns true.
62 Standard_EXPORT virtual Standard_Boolean
63 IsDefault () const Standard_OVERRIDE;
66 // ---------- PRIVATE FIELDS ----------
68 TCollection_AsciiString myTitle;
71 // Declaration of CASCADE RTTI
72 DEFINE_STANDARD_RTTI_INLINE(VrmlData_UnknownNode,VrmlData_Node)
75 // Definition of HANDLE object using Standard_DefineHandle.hxx
76 DEFINE_STANDARD_HANDLE (VrmlData_UnknownNode, VrmlData_Node)