|
|
|||
File indexing completed on 2026-09-15 09:17:38
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() = default; 0036 0037 /** 0038 * Constructor. 0039 */ 0040 inline VrmlData_UnknownNode(const VrmlData_Scene& theScene, 0041 const char* theName = nullptr, 0042 const char* theTitle = nullptr) 0043 : VrmlData_Node(theScene, theName) 0044 { 0045 if (theTitle) 0046 myTitle = (const char*)theTitle; 0047 } 0048 0049 /** 0050 * Read the unknown node, till the last closing brace of it. 0051 */ 0052 Standard_EXPORT VrmlData_ErrorStatus Read(VrmlData_InBuffer& theBuffer) override; 0053 0054 /** 0055 * Query the title of the unknown node. 0056 */ 0057 inline const TCollection_AsciiString& GetTitle() const { return myTitle; } 0058 0059 /** 0060 * Check if the Node is non-writeable -- always returns true. 0061 */ 0062 Standard_EXPORT bool IsDefault() const override; 0063 0064 private: 0065 // ---------- PRIVATE FIELDS ---------- 0066 0067 TCollection_AsciiString myTitle; 0068 0069 public: 0070 // Declaration of CASCADE RTTI 0071 DEFINE_STANDARD_RTTI_INLINE(VrmlData_UnknownNode, VrmlData_Node) 0072 }; 0073 0074 // Definition of HANDLE object using Standard_DefineHandle.hxx 0075 #endif
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|