Muster SDK  8.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
MDriveMap.h
Go to the documentation of this file.
1 /*****************************************************************************
2  **
3  ** Header file for Muster API Drivemap object
4  **
5  ** Name : MDriveMap.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 MDRIVEMAP_H
19 #define MDRIVEMAP_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  public:
60  kOnJobStartup
61  };
62 
68  kOnNever
69  };
70 
71  private:
72  std::string drive;
73  std::string path;
74  int connectionPolicy;
75  int disconnectionPolicy;
76 
77  public:
78  #ifndef SWIG
79  MDriveMap& operator=( const MDriveMap& src );
80  MDriveMap(const MDriveMap &src);
81  #endif
82  MDriveMap();
83  std::string getDrive();
84  std::string getPath();
85  int getDisconnectionPolicy();
86  int getConnectionPolicy();
87  void setDrive(const std::string&);
88  void setPath(const std::string&);
89  void setDisconnectionPolicy(int);
90  void setConnectionPolicy(int);
91 
92  static std::vector<MDriveMap> Unmarshall(std::string);
93  static std::string Marshall(std::vector<MDriveMap>* list);
94  };
95 }
96 
97 #endif