|
Chemical Data Processing Library C++ API - Version 1.1.1
|
Go to the documentation of this file.
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;
133 #endif // CDPL_BASE_DATAIOBASE_HPP
A class providing methods for the storage and lookup of control-parameter values.
Definition: ControlParameterContainer.hpp:93
DataIOBase & operator=(const DataIOBase &io_base)
Assignment operator.
#define CDPL_BASE_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
void invokeIOCallbacks(double progress) const
Invokes all registered I/O callback functions with the argument *this.
Provides infrastructure for the registration of I/O callback functions.
Definition: DataIOBase.hpp:59
Definition of the preprocessor macro CDPL_BASE_API.
std::size_t registerIOCallback(const IOCallbackFunction &func)
Registers an I/O callback target function.
DataIOBase()
Default constructor.
Definition: DataIOBase.hpp:101
The namespace of the Chemical Data Processing Library.
Definition of the class CDPL::Base::ControlParameterContainer.
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
void unregisterIOCallback(std::size_t id)
Unregisters the I/O callback function specified by id.
~DataIOBase()
Destructor.
Definition: DataIOBase.hpp:114
DataIOBase(const DataIOBase &io_base)
Copy constructor.
Definition: DataIOBase.hpp:108