Code Search for Developers
 
 
  

CReflectedInstance.h from osgDesigner at Krugle


Show CReflectedInstance.h syntax highlighted

#ifndef __CREFLECTEDINSTANCE_H__
#define __CREFLECTEDINSTANCE_H__ 1

#include <string>

#include <osgIntrospectionToolKit/Export.h>
#include <osgIntrospectionToolKit/IReflectedValue.h>

namespace osgIntrospectionToolKit
{
    class OSGINTROSPECTIONTOOLKIT_EXPORT CReflectedInstance: public IReflectedValue
    {
        public:
        	CReflectedInstance(const osgIntrospection::Type& type)
            :   IReflectedValue(),
                _type(&type)
            {}
            
            CReflectedInstance(const osgIntrospection::Type& type, std::string value)
            :   IReflectedValue(),
                _type(&type),
                _value(value)
            {}
                    
            void                                                        init(const osgIntrospection::Type& type, std::string value)
            {
                _type = &type;
                _value = value;
            }
            virtual Scope                                               valueScope() const
            { return (IReflectedValue::Instance); }    
            
            virtual void                                                getValue(std::string& value) const
            { value = _value; }
            
            virtual const osgIntrospection::Type&                       type() const
            { return (*_type); }

            virtual const osgIntrospection::Type&                       instanceType() const
            { return (*_type); }
            
                        
            
        protected:
        	virtual ~CReflectedInstance()
            {}
            
        private:
            const osgIntrospection::Type*       _type;
            std::string                         _value;
    };

}

#endif // ** __CREFLECTEDINSTANCE_H__ ** //




See more files for this project here

osgDesigner

osgDesigner is a graphical tool used to modify an OpenSceneGraph (OSG) scene using the osgIntrospection framework. OpenSceneGraph developpers will be able to extend osgDesigner at need using (editor | render | osgIntrospection wrapper) plugin system.

Project homepage: http://sourceforge.net/projects/osgdesigner
Programming language(s): C++,Shell Script
License: other

  CArrayItemLink.h
  CIndexedItemLink.h
  CPropertyExtractor.h
  CReflectedInstance.h
  CReflectedPointer.h
  CReflectedRefPointer.h
  CReflectedValueLinkExtractor.h
  CValueTree.h
  CValueTreeFunctor.h
  CValueTreeModifier.h
  CommonStdType.h
  ControlList.h
  ExceptionUtility.h
  Export.h
  IGraph.h
  IReflectedValue.h
  IReflectedValueLink.h
  SMemoryManager.h
  STypeGraph.h
  SWrapperManager.h
  signalslib.hpp