Ignore:
Timestamp:
09/25/2008 08:44:25 PM (4 years ago)
Author:
guyru
Message:
  • Put all of configuration.h into namespace.
  • save method for Configuration
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/configuration.h

    r157 r158  
    2727#include <list> 
    2828 
     29namespace configuration { 
     30 
    2931struct HighscoreItem; 
    3032 
     
    3840         */ 
    3941        void load(std::string file); 
     42 
     43        void save(); 
    4044private: 
    4145        /** 
     
    4650        void parseSettings(std::ifstream *file); 
    4751        void parseHighscores(std::ifstream *file); 
     52 
     53        void saveSettings(std::ofstream *file); 
     54        void saveHighscores(std::ofstream *file); 
    4855         
    4956        std::map<std::string, std::string> m_settings; 
    5057        HighscoreList m_highscores; 
     58 
     59        std::string m_file; 
    5160}; 
    5261 
     
    5665        std::string date; 
    5766}; 
     67 
     68} 
    5869         
    5970 
Note: See TracChangeset for help on using the changeset viewer.