|
| | BaseData (std::string type) |
| | Constructs a BaseData object with the specified type.
|
| |
| virtual | ~BaseData ()=default |
| | Virtual destructor for BaseData.
|
| |
| bool | is_same_type (const BaseData &data) const |
| | Checks if the type of this data matches the type of another BaseData object.
|
| |
| const std::string & | get_type () const |
| | Retrieves the type of the data as a string.
|
| |
| virtual const void * | get_value_ptr () const =0 |
| | Pure virtual method to retrieve a pointer to the stored value.
|
| |
| virtual void * | get_value_ptr ()=0 |
| | This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
| |
Abstract base class representing generic data with type information.
The BaseData class provides a common interface for handling data of different types. It stores a type identifier as a string and requires derived classes to implement a method to retrieve a pointer to the stored value.