Show CArrayItemLink.h syntax highlighted
#ifndef __CARRAYITEMLINK_H__
#define __CARRAYITEMLINK_H__ 1
#include <osgIntrospectionToolKit/Export.h>
#include <osgIntrospectionToolKit/IReflectedValueLink.h>
namespace osgIntrospectionToolKit
{
/*************************************************
* link class between an array reflectedValue
* and its items
*************************************************/
class OSGINTROSPECTIONTOOLKIT_EXPORT CArrayItemLink : public IReflectedValueLink
{
public:
CArrayItemLink(const osgIntrospection::PropertyInfo& pi, int idx)
: IReflectedValueLink(pi),
_idx(idx)
{}
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 ~CArrayItemLink()
{}
int _idx;
};
}
#endif // ** __CARRAYITEMLINK_H__ ** //
See more files for this project here