TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
RegistryUtil.h
Go to the documentation of this file.
1 
11 #ifndef G3D_REGISTRYUTIL_H
12 #define G3D_REGISTRYUTIL_H
13 
14 #include "G3D/platform.h"
15 #include "G3D/g3dmath.h"
16 
17 // This file is only used on Windows
18 #ifdef G3D_WINDOWS
19 
20 #include <string>
21 
22 namespace G3D {
23 
51 class RegistryUtil {
52 
53 public:
55  static bool keyExists(const std::string& key);
56 
58  static bool valueExists(const std::string& key, const std::string& value);
59 
61  static bool readInt32(const std::string& key, const std::string& value, int32& data);
62 
71  static bool readBytes(const std::string& key, const std::string& value, uint8* data, uint32& dataSize);
72 
74  static bool readString(const std::string& key, const std::string& value, std::string& data);
75 
77  static bool writeInt32(const std::string& key, const std::string& value, int32 data);
78 
86  static bool writeBytes(const std::string& key, const std::string& value, const uint8* data, uint32 dataSize);
87 
89  static bool writeString(const std::string& key, const std::string& value, const std::string& data);
90 
91 };
92 
93 } // namespace G3D
94 
95 #endif // G3D_WINDOWS
96 
97 #endif // G3D_REGISTRYTUIL_H
Definition: AABox.h:25
int32_t int32
Definition: Define.h:146
uint32_t uint32
Definition: Define.h:150
uint8_t uint8
Definition: Define.h:152
const FieldDescriptor value
Definition: descriptor.h:1522