All Classes Functions Variables Typedefs Friends Pages
CoreTools.h
1 //------------------------------------------------------------------------------
2 //
3 // Copyright (c) 2014 Glympse Inc. All rights reserved.
4 //
5 //------------------------------------------------------------------------------
6 
7 #ifndef CORETOOLS_H__GLYMPSE__
8 #define CORETOOLS_H__GLYMPSE__
9 
10 namespace Glympse
11 {
12 
16 class CoreTools
17 {
18  private: CoreTools();
19 
23  public: static GString primitiveToString(const GPrimitive& data);
24 
28  public: static GPrimitive stringToPrimitive(const GString& json);
29 
33  public: static GString httpMethodEnumToString(int32 methodType);
34 
38  public: static int32 httpMethodStringToEnum(const GString& methodString);
39 
43  public: static GString urlEncode(const GString& str);
44 
48  public: static GString urlDecode(const GString& str);
49 };
50 
51 }
52 
53 #endif // !CORETOOLS_H__GLYMPSE__