00001 00032 #ifndef LLLIVEAPPCONFIG_H 00033 #define LLLIVEAPPCONFIG_H 00034 00035 #include "lllivefile.h" 00036 00037 class LLApp; 00038 00039 class LLLiveAppConfig : public LLLiveFile 00040 { 00041 public: 00042 // To use this, instantiate a LLLiveAppConfig object inside your main loop. 00043 // The traditional name for it is live_config. 00044 // Be sure to call live_config.checkAndReload() periodically. 00045 00046 LLLiveAppConfig(LLApp* app, const std::string& filename, F32 refresh_period); 00047 ~LLLiveAppConfig(); 00048 00049 protected: 00050 /*virtual*/ void loadFile(); 00051 00052 private: 00053 LLApp* mApp; 00054 }; 00055 00056 #endif