0024947: Redesign OCCT legacy type system -- automatic
[occt.git] / src / VrmlData / VrmlData_UnknownNode.hxx
CommitLineData
b311480e 1// Created on: 2006-10-08
2// Created by: Alexander GRIGORIEV
973c2be1 3// Copyright (c) 2006-2014 OPEN CASCADE SAS
b311480e 4//
973c2be1 5// This file is part of Open CASCADE Technology software library.
b311480e 6//
d5f74e42 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
973c2be1 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.
b311480e 12//
973c2be1 13// Alternatively, this file may be used under the terms of Open CASCADE
14// commercial license or contractual agreement.
7fd59977 15
16#ifndef VrmlData_UnknownNode_HeaderFile
17#define VrmlData_UnknownNode_HeaderFile
18
19#include <VrmlData_Node.hxx>
20#include <TCollection_AsciiString.hxx>
21
22/**
23 * Definition of UnknownNode -- placeholder for node types that
24 * are not processed now.
25 */
26
27class VrmlData_UnknownNode : public VrmlData_Node
28{
29 public:
30 // ---------- PUBLIC METHODS ----------
31
32 /**
33 * Empty Constructor.
34 */
35 inline VrmlData_UnknownNode () {}
36
37 /**
38 * Constructor.
39 */
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; }
45
46 /**
47 * Read the unknown node, till the last closing brace of it.
48 */
49 Standard_EXPORT virtual VrmlData_ErrorStatus
50 Read (VrmlData_InBuffer& theBuffer);
51
52 /**
53 * Query the title of the unknown node.
54 */
55 inline const TCollection_AsciiString&
56 GetTitle () const
57 { return myTitle; }
58
59 /**
60 * Check if the Node is non-writeable -- always returns true.
61 */
62 Standard_EXPORT virtual Standard_Boolean
63 IsDefault () const;
64
65 private:
66 // ---------- PRIVATE FIELDS ----------
67
68 TCollection_AsciiString myTitle;
69
70 public:
71// Declaration of CASCADE RTTI
ec357c5c 72DEFINE_STANDARD_RTTI (VrmlData_UnknownNode, VrmlData_Node)
7fd59977 73};
74
75// Definition of HANDLE object using Standard_DefineHandle.hxx
76DEFINE_STANDARD_HANDLE (VrmlData_UnknownNode, VrmlData_Node)
77
78
79#endif