Muster SDK  8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MTemplateVariable.h
Go to the documentation of this file.
1 /*****************************************************************************
2  **
3  ** Header file for Muster API Template variable object
4  **
5  ** Name : MTemplateVariable.h
6  ** Author : Leonardo Bernardini
7  ** Version : 1.0, Sat Mar 2nd 2013
8  **
9  ** Copyright 2000-2014, Virtual Vertex
10  ** All Rights Reserved.
11  **
12  ** This file contains UNPUBLISHED PROPRIETARY SOURCE CODE.
13  ** The contents of this file may not be disclosed to third parties, copied
14  ** or duplicated in any form, in whole or in part, without the prior written
15  ** permission of the author.
16  **
17  *****************************************************************************/
18 #ifndef MTEMPLATEVARIABLE_H
19 #define MTEMPLATEVARIABLE_H
20 
21 
22 #ifdef WIN32
23 // Windows definitions
24 #ifdef MCLIENTLIB_EXPORTS
25 #define MCLIENTLIB_API __declspec(dllexport)
26 #else
27 #define MCLIENTLIB_API __declspec(dllimport)
28 #endif
29 #else
30 
31 #ifndef MCLIENTLIB_EXPORTS
32 #ifdef LINUX
33 #define MCLIENTLIB_API
34 #else
35 #define MCLIENTLIB_API
36 #endif
37 #else
38 #define MCLIENTLIB_API
39 #endif
40 #endif
41 
42 #if defined(_WIN32)
43 #pragma warning(disable: 4251)
44 #endif // _WIN32
45 
46 #include <string>
47 #include <vector>
48 
49 namespace MClientLib {
50 
55  private:
56  int templateId;
57  std::string key;
58  std::string value;
59  public:
60 
62 
63  int getTemplateId();
64  std::string getKey();
65  std::string getValue();
66 
67  void setTemplateId(int);
68  void setKey(const std::string&);
69  void setValue(const std::string&);
70 
71  static std::vector<MTemplateVariable> Unmarshall(std::string);
72  static std::string Marshall(std::vector<MTemplateVariable>* list);
73 
74  };
75 }
76 
77 #endif