38 lines
1.0 KiB
C++
38 lines
1.0 KiB
C++
|
#include "weeobject.h"
|
||
|
|
||
|
WeeObject::WeeObject(QString type, QByteArray d)
|
||
|
{
|
||
|
if (type=="chr") {}
|
||
|
else if (type == "int") {}
|
||
|
else if (type == "lon") {}
|
||
|
else if (type == "str") {}
|
||
|
else if (type == "ptr") {}
|
||
|
else if (type == "buf") {}
|
||
|
else if (type == "tim") {}
|
||
|
else if (type == "htb") {}
|
||
|
else if (type == "hda") {}
|
||
|
else if (type == "inf") {}
|
||
|
else if (type == "inl") {}
|
||
|
else if (type == "arr") {}
|
||
|
else {}
|
||
|
length = d.length();
|
||
|
raw = d;
|
||
|
}
|
||
|
|
||
|
void* WeeObject::get() {
|
||
|
switch(type) {
|
||
|
case Types::Chr : return raw.data();
|
||
|
case Types::Int : return raw.data();
|
||
|
case Types::Lon : return raw.data();
|
||
|
case Types::Str : return raw.data();
|
||
|
case Types::Ptr : return raw.data();
|
||
|
case Types::Buf : return raw.data();
|
||
|
case Types::Tim : return raw.data();
|
||
|
case Types::Htb : return raw.data();
|
||
|
case Types::Hda : return raw.data();
|
||
|
case Types::Inf : return raw.data();
|
||
|
case Types::Inl : return raw.data();
|
||
|
case Types::Arr : return raw.data();
|
||
|
}
|
||
|
}
|