16#include <boost/any.hpp>
17#include <Core/NeTypetraits.h>
21 typedef std::vector<MatlabIOContainer> vectorMatlabIOContainer;
22 typedef std::vector<std::vector<MatlabIOContainer> > vector2DMatlabIOContainer;
100 return data_.type() ==
typeid(T);
141 template<
class T> T
Data(
void)
const
143 return boost::any_cast<T>(data_);
A container class for storing type agnostic variables.
bool TypeEquals(void) const
Check if the stored type is equal to the templated type.
std::string Name(void) const
Gets the name.
MatlabIOContainer()
Default constructor.
virtual ~MatlabIOContainer()
Destructor.
void SetData(const boost::any data)
Sets any kind of data.
MatlabIOContainer(const std::string name, const boost::any data)
Constructor to initalize the container with data and an associated name.
void SetName(const std::string name)
Sets a name.
T Data(void) const
Gets the stored data.
std::string Type(void) const
The type of the variable.