| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

ScXMLObject.h
1 #ifndef COIN_SCXMLOBJECT_H
2 #define COIN_SCXMLOBJECT_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <Inventor/SbBasic.h>
28 #include <Inventor/SoType.h>
29 #include <Inventor/tools/SbPimplPtr.h>
30 #include <Inventor/scxml/ScXMLSubObject.h>
31
32 class COIN_DLL_API ScXMLObject {
33 SCXML_OBJECT_ABSTRACT_HEADER(ScXMLObject)
34
35 public:
36 static void initClass(void);
37
38 ScXMLObject(void);
39 virtual ~ScXMLObject(void);
40
41 SbBool isOfType(SoType type) const;
42
43 void setXMLAttribute(const char * attribute, const char * value);
44 const char * getXMLAttribute(const char * attribute) const;
45
46 virtual SbBool handleXMLAttributes(void);
47
48 virtual void setContainer(ScXMLObject * container);
49 ScXMLObject * getContainer(void) const { return this->containerptr; }
50
51 SbBool isContainedIn(const ScXMLObject * object) const;
52
53 protected:
54 static void registerClassType(const char * xmlns,
55 const char * classname, SoType type);
56 static void registerInvokeClassType(const char * xmlns,
57 const char * targettype,
58 const char * source, SoType type);
59
60 private:
61 ScXMLObject * containerptr;
62
63 private:
64 ScXMLObject(const ScXMLObject & rhs); // N/A
65 ScXMLObject & operator = (const ScXMLObject & rhs); // N/A
66
67 class PImpl;
68 SbPimplPtr<PImpl> pimpl;
69
70 }; // ScXMLObject
71
72 #endif // !COIN_SCXMLOBJECT_H

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.