added DataField::clone()
This commit is contained in:
@@ -156,6 +156,12 @@ public:
|
||||
*/
|
||||
virtual ~DataField() {}
|
||||
|
||||
/**
|
||||
* Clone this instance.
|
||||
* @return a clone of this instance.
|
||||
*/
|
||||
virtual DataField* clone() = 0;
|
||||
|
||||
/**
|
||||
* Factory method for creating new instances.
|
||||
* @param it the iterator to traverse for the definition parts.
|
||||
@@ -318,6 +324,9 @@ public:
|
||||
*/
|
||||
virtual ~SingleDataField() {}
|
||||
|
||||
// @copydoc
|
||||
virtual SingleDataField* clone() = 0;
|
||||
|
||||
/**
|
||||
* Factory method for creating a new @a SingleDataField instance derived from a base type.
|
||||
* @param typeNameStr the base type name string.
|
||||
@@ -460,6 +469,9 @@ public:
|
||||
*/
|
||||
virtual ~StringDataField() {}
|
||||
|
||||
// @copydoc
|
||||
virtual StringDataField* clone();
|
||||
|
||||
// @copydoc
|
||||
virtual result_t derive(string name, string comment,
|
||||
string unit, const PartType partType,
|
||||
@@ -516,6 +528,9 @@ public:
|
||||
*/
|
||||
virtual ~NumericDataField() {}
|
||||
|
||||
// @copydoc
|
||||
virtual NumericDataField* clone() = 0;
|
||||
|
||||
// @copydoc
|
||||
virtual bool hasFullByteOffset(bool after);
|
||||
|
||||
@@ -576,6 +591,9 @@ public:
|
||||
*/
|
||||
virtual ~NumberDataField() {}
|
||||
|
||||
// @copydoc
|
||||
virtual NumberDataField* clone();
|
||||
|
||||
// @copydoc
|
||||
virtual result_t derive(string name, string comment,
|
||||
string unit, const PartType partType,
|
||||
@@ -636,6 +654,9 @@ public:
|
||||
*/
|
||||
virtual ~ValueListDataField() {}
|
||||
|
||||
// @copydoc
|
||||
virtual ValueListDataField* clone();
|
||||
|
||||
// @copydoc
|
||||
virtual result_t derive(string name, string comment,
|
||||
string unit, const PartType partType, int divisor,
|
||||
@@ -697,6 +718,9 @@ public:
|
||||
*/
|
||||
virtual ~DataFieldSet();
|
||||
|
||||
// @copydoc
|
||||
virtual DataFieldSet* clone();
|
||||
|
||||
// @copydoc
|
||||
virtual unsigned char getLength(PartType partType);
|
||||
|
||||
@@ -771,6 +795,12 @@ public:
|
||||
*/
|
||||
DataFieldTemplates() : FileReader<void*>::FileReader(false) {}
|
||||
|
||||
/**
|
||||
* Constructs a new copied instance.
|
||||
* @param other the @a DataFieldTemplates to copy from.
|
||||
*/
|
||||
DataFieldTemplates(DataFieldTemplates& other);
|
||||
|
||||
/**
|
||||
* Destructor.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user