| Last change
                  on this file since 7384 was
                  7370,
                  checked in by bensch, 20 years ago | 
        
          | 
orxonox/trunk: drawLists/tickLists are used, and made some TiXmlElement to const TiXmlElement, also fixed some bugs in the loadWorldEntities-functions from Gameworld and SipleGameMenu
 | 
        | File size:
            867 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 | 
|---|
| 17 | class 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(const 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.