summaryrefslogtreecommitdiff
path: root/indra/llcommon/llliveappconfig.h
diff options
context:
space:
mode:
authorJames Cook <james@lindenlab.com>2007-02-27 17:52:10 +0000
committerJames Cook <james@lindenlab.com>2007-02-27 17:52:10 +0000
commitb5342e238a96ee00d7d2afa3883b1596291587cc (patch)
treee5743463e674ae4f1cb420aab909ad997a8a869a /indra/llcommon/llliveappconfig.h
parent647d29b1a2d4712ea738b408be43e56895a715b1 (diff)
svn merge -r58163:58241 loadstone-sim-standby, reduces database load from standby sims polling the database for a region to run
Diffstat (limited to 'indra/llcommon/llliveappconfig.h')
-rw-r--r--indra/llcommon/llliveappconfig.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/indra/llcommon/llliveappconfig.h b/indra/llcommon/llliveappconfig.h
new file mode 100644
index 0000000000..ceceda5b18
--- /dev/null
+++ b/indra/llcommon/llliveappconfig.h
@@ -0,0 +1,33 @@
+/**
+ * @file llliveappconfig.h
+ * @brief Configuration information for an LLApp that overrides indra.xml
+ *
+ * Copyright (c) 2003-$CurrentYear$, Linden Research, Inc.
+ * $License$
+ */
+
+#ifndef LLLIVEAPPCONFIG_H
+#define LLLIVEAPPCONFIG_H
+
+#include "lllivefile.h"
+
+class LLApp;
+
+class LLLiveAppConfig : public LLLiveFile
+{
+public:
+ // To use this, instantiate a LLLiveAppConfig object inside your main loop.
+ // The traditional name for it is live_config.
+ // Be sure to call live_config.checkAndReload() periodically.
+
+ LLLiveAppConfig(LLApp* app, const std::string& filename, F32 refresh_period);
+ ~LLLiveAppConfig();
+
+protected:
+ /*virtual*/ void loadFile();
+
+private:
+ LLApp* mApp;
+};
+
+#endif