29 #ifndef CDPL_BASE_DATAIOBASE_HPP
30 #define CDPL_BASE_DATAIOBASE_HPP
125 typedef std::pair<std::size_t, IOCallbackFunction> CallbackListEntry;
126 typedef std::vector<CallbackListEntry> CallbackList;
128 CallbackList callbacks;
Definition of the preprocessor macro CDPL_BASE_API.
#define CDPL_BASE_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Definition of the class CDPL::Base::ControlParameterContainer.
A class providing methods for the storage and lookup of control-parameter values.
Definition: ControlParameterContainer.hpp:93
Provides infrastructure for the registration of I/O callback functions.
Definition: DataIOBase.hpp:59
~DataIOBase()
Destructor.
Definition: DataIOBase.hpp:114
void unregisterIOCallback(std::size_t id)
Unregisters the I/O callback function specified by id.
std::size_t registerIOCallback(const IOCallbackFunction &func)
Registers an I/O callback target function.
void clearIOCallbacks()
Clears all registered I/O callback functions.
std::function< void(const DataIOBase &, double)> IOCallbackFunction
A functor class used to wrap I/O callback target functions.
Definition: DataIOBase.hpp:68
DataIOBase & operator=(const DataIOBase &io_base)
Assignment operator.
void invokeIOCallbacks(double progress) const
Invokes all registered I/O callback functions with the argument *this.
DataIOBase()
Default constructor.
Definition: DataIOBase.hpp:101
DataIOBase(const DataIOBase &io_base)
Copy constructor.
Definition: DataIOBase.hpp:108
The namespace of the Chemical Data Processing Library.