MSamplesBoundaries.h
1 /*****************************************************************************
2  **
3  ** Header file for Muster API Samples boundaries object
4  **
5  ** Name : MSamplesBoundaries.h
6  ** Author : Leonardo Bernardini
7 ** Version : Alpha 9.0 Wed May 17th 2017
8  **
9  ** Copyright 2000-2017, 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 MSAMPLESBOUNDARIES_H
19 #define MSAMPLESBOUNDARIES_H
20 
21 #ifdef WIN32
22 // Windows definitions
23 #ifdef MCLIENTLIB_EXPORTS
24 #define MCLIENTLIB_API __declspec(dllexport)
25 #else
26 #define MCLIENTLIB_API __declspec(dllimport)
27 #endif
28 #else
29 
30 #ifndef MCLIENTLIB_EXPORTS
31 #ifdef LINUX
32 #define MCLIENTLIB_API
33 #else
34 #define MCLIENTLIB_API
35 #endif
36 #else
37 #define MCLIENTLIB_API
38 #endif
39 #endif
40 
41 
42 // Disable STL Export warning, member is private, we don't need direct access from the DLL client
43 #if defined(_WIN32)
44 #pragma warning(disable: 4251)
45 #endif // _WIN32
46 
47 #include <vector>
48 #include <string>
49 
50 namespace MClientLib {
51 
62  class MCLIENTLIB_API MSamplesBoundaries {
63  private:
64  long long int statisticsStartingTime;
65  long long int statisticsEndingTime;
66  long statisticsSamplesCount;
67 
68  long long int historyStartingTime;
69  long long int historyEndingTime;
70  long historySamplesCount;
71  public:
73  bool Unmarshall(const std::vector<std::string>& items);
74 
75  long long int getStatisticsStartingTime();
76  long long int getStatisticsEndingTime();
77  long getStatisticsSamplesCount();
78  long long int getHistoryStartingTime();
79  long long int getHistoryEndingTime();
80  long getHistorySamplesCount();
81 
82  void setStatisticsStartingTime(long long int _statisticsStartingTime);
83  void setStatisticsEndingTime(long long int _statisticsEndingTime);
84  void setStatisticsSamplesCount(long _statisticsSamplesCount);
85  void setHistoryStartingTime(long long int _historyStartingTime);
86  void setHistoryEndingTime(long long int _historyEndingTime);
87  void setHistorySamplesCount(long _historySamplesCount);
88  };
89 
91 }
92 
93 #endif
Class holding a samples boundaries for an history query.