Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/lib/data/data_tank.h @ 6404

Last change on this file since 6404 was 6404, checked in by patrick, 18 years ago

network: working on the last steps, completion is in reach. sadly the world isn't loaded anymore at the moment. continue work later. work flush

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