BALL
1.4.1
|
#include <BALL/VIEW/DATATYPE/dataset.h>
Public Member Functions | |
Constructors and Destructors | |
Dataset () | |
Dataset (const Dataset &dataset) | |
virtual | ~Dataset () |
virtual void | clear () |
Assignment methods | |
void | set (const Dataset &v) |
const Dataset & | operator= (const Dataset &v) |
void | setName (String name) |
String | getName () const |
void | setType (String type) |
String | getType () const |
void | setComposite (Composite *composite) |
Composite * | getComposite () const |
void | dump (std::ostream &s, Size depth) const |
Protected Attributes | |
Composite * | composite_ |
String | name_ |
String | type_ |
Baseclass for datasets. Datasets are used to incorporate any kind of data and make it accessible through the DatasetControl. The data is stored as a void pointer and casted to its real type in the corresponding Contoller class. A dataset has the following attributes:
<bf>NOTE:</bf> The data will not be deleted, when the Dataset is deleted. This has to be done in the DatasetController, since only it knows what kind of object is contained!
Default Constructor.
BALL::VIEW::Dataset::Dataset | ( | const Dataset & | dataset | ) |
Copy constructor.
virtual BALL::VIEW::Dataset::~Dataset | ( | ) | [virtual] |
Destructor.
virtual void BALL::VIEW::Dataset::clear | ( | ) | [virtual] |
Explicit default initialization.
void BALL::VIEW::Dataset::dump | ( | std::ostream & | s, |
Size | depth | ||
) | const |
Composite* BALL::VIEW::Dataset::getComposite | ( | ) | const [inline] |
String BALL::VIEW::Dataset::getName | ( | ) | const [inline] |
String BALL::VIEW::Dataset::getType | ( | ) | const [inline] |
void BALL::VIEW::Dataset::set | ( | const Dataset & | v | ) |
Assignment.
void BALL::VIEW::Dataset::setComposite | ( | Composite * | composite | ) | [inline] |
void BALL::VIEW::Dataset::setName | ( | String | name | ) | [inline] |
void BALL::VIEW::Dataset::setType | ( | String | type | ) | [inline] |
Composite* BALL::VIEW::Dataset::composite_ [protected] |
String BALL::VIEW::Dataset::name_ [protected] |
String BALL::VIEW::Dataset::type_ [protected] |