2
3
4
5
6
7
8
9
10
11
12
13
14
15
17
18
19
20
27#include "core/clockwerkerrors.h"
28#include "logging/SimLogger.h"
89 int log(
void* logger);
104 template <
typename T>
109 template <
typename T>
114 template <
typename T>
128 template <
typename T>
133 template <
typename T>
149 template <
typename T>
165 template <
typename T>
184 template <
typename T>
195 template <
typename T>
The Data IO Base class is designed to provide the basic interface of the Data IO class (see documenta...
Definition DataIOBase.h:54
void * writePtr()
Function to write value to mapped location – root data or map.
Definition DataIOBase.cpp:20
void resetMap()
Definition DataIOBase.h:72
bool _root
Variable to indicate whether variable in question is root data source or not.
Definition DataIOBase.h:112
bool _writeAllowed
Variable to indicate whether writing is allowed to this variable Set to false upon mapping by default...
Definition DataIOBase.h:108
DataIOBase * data
Pointer to data held by the object – by default, this will point internally to _default_data,...
Definition DataIOBase.h:100
void * _data_ptr
Generic pointer to hold any data type – will be resolved to point to actual object in inherited class...
Definition DataIOBase.h:104
void * read()
Function to read value from mapped location – root data or map.
Definition DataIOBase.cpp:32
dataio_types_e _type_id
Variable to store the type of data that the DataIO object is holding. Valid types are documented in t...
Definition DataIOBase.h:117
Class for inter-object communication.
Definition DataIO.hpp:46
int log(void *logger)
Function to log data to a logger.
Definition DataIO.hpp:105
void resetMap()
Definition DataIO.hpp:80
void mapToPointer(T *data_source)
Function to map the DataIO object to a pointer, rather than another of its kind.
Definition DataIO.hpp:62
DataIO(GraphTreeObject *data_parent, std::string data_name, T initial_value)
Constructor for the DataIO object.
Definition DataIO.hpp:134
const T & operator()()
Overloaded operator to return value of DataIO object.
Definition DataIO.hpp:129
T * getRootDataPointer()
Function to return a handle to the root data held in THIS object.
Definition DataIO.hpp:196
void * tmp_ptr
Temporary pointer to hold our stuff internally.
Definition DataIO.hpp:101
int operator()(const T &new_value)
Function to set the value of the DataIO object.
Definition DataIO.hpp:115
int header(void *logger)
Function to pass headers for this object to the logger.
Definition DataIO.hpp:110
T _root_data
Default data location pointed to by the DataIO object. Note that root data can change if DataIO is ma...
Definition DataIO.hpp:98
Base class for object organization.
Definition GraphTreeObject.h:87
bool _loggable
Variable to indicate whether the selected object is loggable. Set to false by default.
Definition GraphTreeObject.h:257
Class for logging data to a file.
Definition SimLogger.h:67
#define NO_ERROR
Definition clockwerkerrors.h:31
#define ERROR_WRITE_PERMISSION
Definition clockwerkerrors.h:103