7#ifndef LOGICALACCESS_VALUEDATAFIELD_HPP
8#define LOGICALACCESS_VALUEDATAFIELD_HPP
45 virtual void setDataLength(
unsigned int length);
51 std::shared_ptr<DataRepresentation> getDataRepresentation()
const;
57 void setDataRepresentation(std::shared_ptr<DataRepresentation> &encoding);
63 std::shared_ptr<DataType> getDataType()
const;
69 void setDataType(
const std::shared_ptr<DataType> &encoding);
75 void setIsFixedField(
bool isFixed);
81 bool getIsFixedField()
const;
87 void setIsIdentifier(
bool isIdentifier);
93 bool getIsIdentifier()
const;
104 void convertNumericData(
BitsetStream &data,
unsigned long long field,
105 unsigned int fieldlen)
const;
117 void convertBinaryData(
const BitsetStream &data,
unsigned int fieldlen,
129 unsigned long long revertNumericData(
const BitsetStream &data,
unsigned int pos,
130 unsigned int fieldlen)
const;
143 unsigned int fieldlen)
const;
149 void serialize(boost::property_tree::ptree &parentNode)
override;
155 void unSerialize(boost::property_tree::ptree &node)
override;
Definition: BitsetStream.hpp:15
A data field base class.
Definition: datafield.hpp:36
A value data field base class.
Definition: valuedatafield.hpp:20
bool d_isIdentifier
The field is used as identifier.
Definition: valuedatafield.hpp:176
std::shared_ptr< DataType > d_dataType
The Data Type.
Definition: valuedatafield.hpp:166
DataFieldType getDFType() const override
Get the field type.
Definition: valuedatafield.hpp:36
bool d_isFixedField
The field is a value field.
Definition: valuedatafield.hpp:171
std::shared_ptr< DataRepresentation > d_dataRepresentation
The Data Representation.
Definition: valuedatafield.hpp:161
DataFieldType
Definition: datafield.hpp:22
@ DFT_VALUE
Definition: datafield.hpp:23