Show IReflectedValueLink.h syntax highlighted
#ifndef __IREFLECTEDVALUELINK_H__
#define __IREFLECTEDVALUELINK_H__
#include <string>
#include <iostream>
#include <osgIntrospection/PropertyInfo>
#include <osg/Referenced>
#include <osgIntrospectionToolKit/Export.h>
namespace osgIntrospectionToolKit
{
class OSGINTROSPECTIONTOOLKIT_EXPORT IReflectedValueLink: public osg::Referenced
{
public:
IReflectedValueLink(const osgIntrospection::PropertyInfo& pi)
: osg::Referenced(),
_pi(pi)
{}
virtual void getName(std::string& name) const;
virtual bool getValue(const osgIntrospection::Value& parent, osgIntrospection::Value& ret) const;
virtual bool setValue(osgIntrospection::Value& parent, const osgIntrospection::Value& value) const;
virtual bool removeValue(osgIntrospection::Value& parent) const;
virtual bool isEqual(const IReflectedValueLink* rvl) const;
virtual void printInfo() const;
virtual std::string getInfo() const;
const osgIntrospection::PropertyInfo& propertyInfo() const;
bool canSet() const;
bool canAdd() const;
bool canRemove() const;
protected:
virtual ~IReflectedValueLink()
{}
const osgIntrospection::PropertyInfo& _pi;
};
inline const osgIntrospection::PropertyInfo& IReflectedValueLink::propertyInfo() const
{ return (_pi);}
inline bool IReflectedValueLink::canSet() const
{ return (_pi.canSet()); }
inline bool IReflectedValueLink::canRemove() const
{ return (_pi.canRemove()); }
inline bool IReflectedValueLink::canAdd() const
{ return (_pi.canAdd()); }
}
#endif // ** __IREFLECTEDVALUELINK_H__ ** //
See more files for this project here