Added properties
This commit is contained in:
25
Property.cpp
Normal file
25
Property.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include "Property.h"
|
||||
|
||||
Property::Property(std::string title, std::string propName, void * prop, void *(*getFunc)(void), void(*setFunc)(void *))
|
||||
{
|
||||
this->title = title;
|
||||
this->propName = propName;
|
||||
this->prop = prop;
|
||||
this->getFunc = getFunc;
|
||||
this->setFunc = setFunc;
|
||||
}
|
||||
|
||||
Property::~Property(void)
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
void Property::setProperty(void * newprop)
|
||||
{
|
||||
this->setFunc(newprop);
|
||||
}
|
||||
|
||||
void * Property::getProperty()
|
||||
{
|
||||
return this->getFunc();
|
||||
}
|
||||
Reference in New Issue
Block a user