Show CIndexedItemLink.h syntax highlighted
#ifndef __CINDEXEDITEMLINK_H__
#define __CINDEXEDITEMLINK_H__ 1
#include <osgIntrospectionToolKit/Export.h>
#include <osgIntrospectionToolKit/IReflectedValueLink.h>
namespace osgIntrospectionToolKit
{
/*************************************************
* link class between an indexed reflectedValue
* and its items
*************************************************/
class OSGINTROSPECTIONTOOLKIT_EXPORT CIndexedItemLink : public IReflectedValueLink
{
public:
CIndexedItemLink(const osgIntrospection::PropertyInfo& pi, osgIntrospection::ValueList& valueList)
: IReflectedValueLink(pi),
_valueList(valueList)
{}
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;
protected:
virtual ~CIndexedItemLink()
{}
osgIntrospection::ValueList _valueList;
};
}
#endif // ** __CINDEXEDITEMLINK_H__ ** //
See more files for this project here