Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/blink/src/lib/data/data_tank.h @ 10611

Last change on this file since 10611 was 8717, checked in by bensch, 19 years ago

merged the gui back

File size: 939 bytes
Line 
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 */
25    virtual ErrorMessage init() { return ErrorMessage(); }
26    /** loads the data into the DataTank @param root is the xml root parameter for for loadParams() connection */
27    virtual ErrorMessage loadData(const TiXmlElement* root = NULL) { return ErrorMessage(); }
28    /** unloads the data again from the DataTank */
29    virtual ErrorMessage unloadData() { return ErrorMessage(); }
30};
31
32
33#endif /* _DATA_TANK_H */
Note: See TracBrowser for help on using the repository browser.