-
Notifications
You must be signed in to change notification settings - Fork 0
/
ddynamicobject.hpp
42 lines (33 loc) · 1.22 KB
/
ddynamicobject.hpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
#ifndef DESTRUCT_DYNAOBJECT_HPP
#define DESTRUCT_DYNAOBJECT_HPP
#include <vector>
#include "dobject.hpp"
namespace Destruct
{
class DDynamicObject : public DObject
{
public :
DDynamicObject(DStruct *, DValue const& args);
DDynamicObject(DDynamicObject const &);
~DDynamicObject();
using DObject::getValue;
using DObject::setValue;
virtual DValue getValue(size_t idx) const;
virtual void setValue(size_t idx, DValue const &);
virtual DValue call(size_t idx, DValue const&); //this is juste an helper function
//virtual void replaceValue(size_t idx, BaseValue const& );
//void replaceValue(DUnicodeString const& name, BaseValue const&);
//DObject* privateObject() const;
//void setPrivate(DObject* );
protected:
virtual BaseValue* getBaseValue(size_t index);
virtual BaseValue const* getBaseValue(size_t index) const;
void init(DDynamicObject* self);
void copy(DDynamicObject* self, DDynamicObject const& rhs);
std::vector<BaseValue*> __values;
private:
DDynamicObject& operator=(DDynamicObject const &);
DObject* __object;
};
}
#endif