Muster SDK  8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MPriorityOverride.h
Go to the documentation of this file.
1 /*****************************************************************************
2  **
3  ** Header file for Muster API Priority override object
4  **
5  ** Name : MPriorityOverride.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 MPRIORITYOVERRIDE_H
19 #define MPRIORITYOVERRIDE_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 {
54 
55  private:
56  int instanceId;
57  int instancePriority;
58  int instanceProcessPriority;
59  unsigned long long affinityMask;
60 
61  public:
62 
64 
65  int getInstanceId();
66  int getInstancePriority();
67  int getInstanceProcessPriority();
68  unsigned long long getAffinityMask();
69 
70  void setInstanceId(int);
71  void setInstancePriority(int);
72  void setInstanceProcessPriority(int);
73  void setAffinityMask(unsigned long long);
74 
75  static std::vector<MPriorityOverride> Unmarshall(std::string);
76  static std::string Marshall(std::vector<MPriorityOverride>* list);
77 
78  };
79 }
80 
81 #endif