Coin Logo http://www.sim.no/
http://www.coin3d.org/

ScXMLObject.h
00001 #ifndef COIN_SCXMLOBJECT_H
00002 #define COIN_SCXMLOBJECT_H
00003 
00004 /**************************************************************************\
00005  *
00006  *  This file is part of the Coin 3D visualization library.
00007  *  Copyright (C) by Kongsberg Oil & Gas Technologies.
00008  *
00009  *  This library is free software; you can redistribute it and/or
00010  *  modify it under the terms of the GNU General Public License
00011  *  ("GPL") version 2 as published by the Free Software Foundation.
00012  *  See the file LICENSE.GPL at the root directory of this source
00013  *  distribution for additional information about the GNU GPL.
00014  *
00015  *  For using Coin with software that can not be combined with the GNU
00016  *  GPL, and for taking advantage of the additional benefits of our
00017  *  support services, please contact Kongsberg Oil & Gas Technologies
00018  *  about acquiring a Coin Professional Edition License.
00019  *
00020  *  See http://www.coin3d.org/ for more information.
00021  *
00022  *  Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
00023  *  http://www.sim.no/  sales@sim.no  coin-support@coin3d.org
00024  *
00025 \**************************************************************************/
00026 
00027 #include <Inventor/SbBasic.h>
00028 #include <Inventor/SoType.h>
00029 #include <Inventor/tools/SbPimplPtr.h>
00030 #include <Inventor/scxml/ScXMLSubObject.h>
00031 
00032 class COIN_DLL_API ScXMLObject {
00033   SCXML_OBJECT_ABSTRACT_HEADER(ScXMLObject)
00034 
00035 public:
00036   static void initClass(void);
00037 
00038   ScXMLObject(void);
00039   virtual ~ScXMLObject(void);
00040 
00041   SbBool isOfType(SoType type) const;
00042 
00043   void setXMLAttribute(const char * attribute, const char * value);
00044   const char * getXMLAttribute(const char * attribute) const;
00045 
00046   virtual SbBool handleXMLAttributes(void);
00047 
00048   virtual void setContainer(ScXMLObject * container);
00049   ScXMLObject * getContainer(void) const { return this->containerptr; }
00050 
00051   SbBool isContainedIn(const ScXMLObject * object) const;
00052 
00053 protected:
00054   static void registerClassType(const char * xmlns,
00055                                 const char * classname, SoType type);
00056   static void registerInvokeClassType(const char * xmlns,
00057                                       const char * targettype,
00058                                       const char * source, SoType type);
00059 
00060 private:
00061   ScXMLObject * containerptr;
00062 
00063 private:
00064   ScXMLObject(const ScXMLObject & rhs); // N/A
00065   ScXMLObject & operator = (const ScXMLObject & rhs); // N/A
00066 
00067   class PImpl;
00068   SbPimplPtr<PImpl> pimpl;
00069 
00070 }; // ScXMLObject
00071 
00072 #endif // !COIN_SCXMLOBJECT_H

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

Generated for Coin by Doxygen 1.7.5.1.