Show CReflectedPointer.h syntax highlighted
#ifndef __CREFLECTEDPOINTER_H__
#define __CREFLECTEDPOINTER_H__ 1
#include <string>
#include <osgIntrospectionToolKit/Export.h>
#include <osgIntrospectionToolKit/IReflectedValue.h>
namespace osgIntrospectionToolKit
{
class OSGINTROSPECTIONTOOLKIT_EXPORT CReflectedPointer: public IReflectedValue
{
public:
CReflectedPointer(const osgIntrospection::Value& value)
: IReflectedValue(),
_value(value)
{}
virtual Scope valueScope() const
{ return (IReflectedValue::Pointer); }
// ** IReflectedValue Interface
virtual void getValue(std::string& value) const
{ value = _value.toString(); }
// ** Property Accessor
const osgIntrospection::Value& value() const
{ return (_value); }
osgIntrospection::Value& value()
{ return (_value); }
virtual const osgIntrospection::Type& type() const
{ return (_value.getType()); }
virtual const osgIntrospection::Type& instanceType() const
{ return (_value.getInstanceType()); }
protected:
virtual ~CReflectedPointer()
{ /*_value = osgIntrospection::Value();*/ }
osgIntrospection::Value _value;
};
}
#endif // ** __CREFLECTEDPOINTER_H__ ** //
See more files for this project here