made RAB compiling.. still just a not filled class body...

This commit is contained in:
Marcel M. Otte 2017-03-29 11:20:01 +02:00
parent af87acc86a
commit b6e04b74cd
3 changed files with 33 additions and 33 deletions

View File

@ -380,10 +380,10 @@
<data key="d5"><![CDATA[Contains the known structures.]]></data> <data key="d5"><![CDATA[Contains the known structures.]]></data>
<data key="d6"> <data key="d6">
<y:UMLNoteNode> <y:UMLNoteNode>
<y:Geometry height="28.0" width="217.0" x="20.083333333333485" y="1086.2739543726254"/> <y:Geometry height="28.0" width="231.7005405405405" x="12.733063063063241" y="1086.2739543726254"/>
<y:Fill color="#FFCC00" transparent="false"/> <y:Fill color="#FFCC00" transparent="false"/>
<y:BorderStyle color="#000000" type="line" width="1.0"/> <y:BorderStyle color="#000000" type="line" width="1.0"/>
<y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="17.96875" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="191.81640625" x="12.591796875" y="5.015625">Contains the known structures.<y:LabelModel> <y:NodeLabel alignment="center" autoSizePolicy="content" fontFamily="Dialog" fontSize="12" fontStyle="plain" hasBackgroundColor="false" hasLineColor="false" height="17.96875" horizontalTextPosition="center" iconTextGap="4" modelName="custom" textColor="#000000" verticalTextPosition="bottom" visible="true" width="191.81640625" x="19.942067145270244" y="5.015625">Contains the known structures.<y:LabelModel>
<y:SmartNodeLabelModel distance="4.0"/> <y:SmartNodeLabelModel distance="4.0"/>
</y:LabelModel> </y:LabelModel>
<y:ModelParameter> <y:ModelParameter>

View File

@ -10,7 +10,7 @@ RandomAccessBinary::~RandomAccessBinary()
} }
void RandomAccessBinary::setEndianess(RandomAccessBinary::Endianness endianess) void RandomAccessBinary::setEndianness(Endianness endianess)
{ {
} }
@ -45,82 +45,82 @@ void RandomAccessBinary::setBits(uint bytePosition, uint bitPosition, const uint
} }
void RandomAccessBinary::set_uint16(uint position, uint16_t data) void RandomAccessBinary::set_uint16(uint position, const uint16_t &data)
{ {
} }
void RandomAccessBinary::set_uint32(uint position, uint32_t data) void RandomAccessBinary::set_uint32(uint position, const uint32_t &data)
{ {
} }
void RandomAccessBinary::set_uint64(uint position, uint64_t data) void RandomAccessBinary::set_uint64(uint position, const uint64_t &data)
{ {
} }
void RandomAccessBinary::set_float(uint position, float data) void RandomAccessBinary::set_float(uint position, const float &data)
{ {
} }
void RandomAccessBinary::set_double(uint position, double data) void RandomAccessBinary::set_double(uint position, const double &data)
{ {
} }
const uint8_t RandomAccessBinary::getByte(uint position) uint8_t RandomAccessBinary::getByte(uint position)
{ {
} }
const std::vector<const uint8_t> RandomAccessBinary::getBytes(uint position, uint length) const std::vector<uint8_t> RandomAccessBinary::getBytes(uint position, uint length)
{ {
} }
const bool RandomAccessBinary::getBit(uint byteOffset, uint bitOffset) bool RandomAccessBinary::getBit(uint byteOffset, uint bitOffset)
{ {
} }
const bool RandomAccessBinary::getBit(uint64_t position) bool RandomAccessBinary::getBit(uint64_t position)
{ {
} }
const std::vector<const uint8_t> RandomAccessBinary::getBits(uint byteOffset, uint8_t bitOffset, uint64_t length) const std::vector<uint8_t> RandomAccessBinary::getBits(uint byteOffset, uint8_t bitOffset, uint64_t length)
{ {
} }
const std::vector<const uint8_t> RandomAccessBinary::getBits(uint64_t position, uint64_t length) const std::vector<uint8_t> RandomAccessBinary::getBits(uint64_t position, uint64_t length)
{ {
} }
const uint16_t RandomAccessBinary::get_uint16(uint position) uint16_t RandomAccessBinary::get_uint16(uint position)
{ {
} }
const uint32_t RandomAccessBinary::get_uint32(uint position) uint32_t RandomAccessBinary::get_uint32(uint position)
{ {
} }
const uint64_t RandomAccessBinary::get_uint64(uint position) uint64_t RandomAccessBinary::get_uint64(uint position)
{ {
} }
const float RandomAccessBinary::get_float(uint position) float RandomAccessBinary::get_float(uint position)
{ {
} }
const double RandomAccessBinary::get_double(uint position) double RandomAccessBinary::get_double(uint position)
{ {
} }

View File

@ -14,11 +14,11 @@ class RandomAccessBinary
}; };
public: public:
RandomAccessBinary(); explicit RandomAccessBinary();
explicit ~RandomAccessBinary(); ~RandomAccessBinary();
void setEndianness(Endianness endianess); void setEndianness(Endianness endianess);
const Endianness getEndianness(); Endianness getEndianness();
void setBytes(uint position, const std::vector<uint8_t>& data); void setBytes(uint position, const std::vector<uint8_t>& data);
void setByte(uint position, const uint8_t& data); void setByte(uint position, const uint8_t& data);
@ -35,26 +35,26 @@ public:
void set_float(uint position, const float& data); void set_float(uint position, const float& data);
void set_double(uint position, const double& data); void set_double(uint position, const double& data);
const uint8_t uint8_t
getByte(uint position); getByte(uint position);
const std::vector<const uint8_t> const std::vector<uint8_t>
getBytes(uint position, uint length); getBytes(uint position, uint length);
const bool getBit(uint byteOffset, uint bitOffset); bool getBit(uint byteOffset, uint bitOffset);
const bool getBit(uint64_t position); bool getBit(uint64_t position);
const std::vector<const uint8_t> const std::vector<uint8_t>
getBits(uint byteOffset, uint8_t bitOffset, uint64_t length); getBits(uint byteOffset, uint8_t bitOffset, uint64_t length);
const std::vector<const uint8_t> const std::vector<uint8_t>
getBits(uint64_t position, uint64_t length); getBits(uint64_t position, uint64_t length);
const uint16_t get_uint16(uint position); uint16_t get_uint16(uint position);
const uint32_t get_uint32(uint position); uint32_t get_uint32(uint position);
const uint64_t get_uint64(uint position); uint64_t get_uint64(uint position);
const float get_float(uint position); float get_float(uint position);
const double get_double(uint position); double get_double(uint position);
std::string get_string(uint position, uint length); std::string get_string(uint position, uint length);