Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/lib/data/data_tank.h @ 9537

Last change on this file since 9537 was 8717, checked in by bensch, 18 years ago

merged the gui back

File size: 939 bytes
RevLine 
[6404]1/*!
2 * @file data_tank.h
3 *  container for all data and data loadings. Its absolutily abstract and therefore generic.
4 *  if there is something to load, this class will serve as a good base class since it
5 *  gives you a basic structure for data loading
6 */
7
8#ifndef _DATA_TANK_H
9#define _DATA_TANK_H
10
11
12#include "base_object.h"
13#include "error.h"
14
15
16//! The DataTank
17class DataTank : public BaseObject
18{
19
20  public:
21    DataTank() {}
22    virtual ~DataTank() {}
23
24    /** initializes the DataTank to be able to load the data */
[8717]25    virtual ErrorMessage init() { return ErrorMessage(); }
[6404]26    /** loads the data into the DataTank @param root is the xml root parameter for for loadParams() connection */
[8717]27    virtual ErrorMessage loadData(const TiXmlElement* root = NULL) { return ErrorMessage(); }
[6404]28    /** unloads the data again from the DataTank */
[8717]29    virtual ErrorMessage unloadData() { return ErrorMessage(); }
[6404]30};
31
32
33#endif /* _DATA_TANK_H */
Note: See TracBrowser for help on using the repository browser.