diff options
author | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:50 -0500 |
commit | 2a4dea528f670b9bb1f77ef27a8a1dd16603d114 (patch) | |
tree | 95c68e362703c9099d571ecbdc6142b1cda1e005 /linden/indra/llcommon/llindraconfigfile.h | |
parent | Second Life viewer sources 1.20.6 (diff) | |
download | meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.zip meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.gz meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.bz2 meta-impy-2a4dea528f670b9bb1f77ef27a8a1dd16603d114.tar.xz |
Second Life viewer sources 1.20.7
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llindraconfigfile.h | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/linden/indra/llcommon/llindraconfigfile.h b/linden/indra/llcommon/llindraconfigfile.h new file mode 100644 index 0000000..271a848 --- /dev/null +++ b/linden/indra/llcommon/llindraconfigfile.h | |||
@@ -0,0 +1,50 @@ | |||
1 | /** | ||
2 | * @file llindraconfigfile.h | ||
3 | * @brief manages configuration file for indra.xml | ||
4 | * | ||
5 | * $LicenseInfo:firstyear=2007&license=internal$ | ||
6 | * | ||
7 | * Copyright (c) 2007-2008, Linden Research, Inc. | ||
8 | * | ||
9 | * The following source code is PROPRIETARY AND CONFIDENTIAL. Use of | ||
10 | * this source code is governed by the Linden Lab Source Code Disclosure | ||
11 | * Agreement ("Agreement") previously entered between you and Linden | ||
12 | * Lab. By accessing, using, copying, modifying or distributing this | ||
13 | * software, you acknowledge that you have been informed of your | ||
14 | * obligations under the Agreement and agree to abide by those obligations. | ||
15 | * | ||
16 | * ALL LINDEN LAB SOURCE CODE IS PROVIDED "AS IS." LINDEN LAB MAKES NO | ||
17 | * WARRANTIES, EXPRESS, IMPLIED OR OTHERWISE, REGARDING ITS ACCURACY, | ||
18 | * COMPLETENESS OR PERFORMANCE. | ||
19 | * $/LicenseInfo$ | ||
20 | */ | ||
21 | |||
22 | #ifndef LL_LLINDRACONFIGFILE_H | ||
23 | #define LL_LLINDRACONFIGFILE_H | ||
24 | |||
25 | #include <string> | ||
26 | #include "linden_common.h" | ||
27 | |||
28 | #include "lllivefile.h" | ||
29 | #include "llsd.h" | ||
30 | |||
31 | |||
32 | // To use, call LLIndraConfigFile::initClass(config_dir); | ||
33 | // Then whenever getConfig is called, it will check and reload automatically | ||
34 | |||
35 | class LLIndraConfigFile : public LLLiveFile | ||
36 | { | ||
37 | public: | ||
38 | LLIndraConfigFile(); | ||
39 | static void initClass(const std::string& config_dir); | ||
40 | static LLSD getConfig(const std::string& config_name); | ||
41 | |||
42 | private: | ||
43 | static std::string filename(); | ||
44 | |||
45 | protected: | ||
46 | /* virtual */ void loadFile(); | ||
47 | LLSD mConfig; | ||
48 | }; | ||
49 | |||
50 | #endif //LL_LLINDRACONFIGFILE_H | ||