MMFGroup.h
1 /*****************************************************************************
2 **
3 ** Header file for Muster API Missing frame group object
4 **
5 ** Name : MMFGroup.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 MMFGROUP_H
19 #define MMFGROUP_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 // Disable STL Export warning, member is private, we don't need direct access from the DLL client
42 #if defined(_WIN32)
43 #pragma warning(disable: 4251)
44 #endif // _WIN32
45 
46 #include <set>
47 #include <string>
48 
49 namespace MClientLib {
50 
61  class MCLIENTLIB_API MMFGroup {
62  public:
63  MMFGroup();
64  virtual ~MMFGroup();
65 
66  virtual float getStartFrame();
67  virtual float getEndFrame();
68  virtual float getByFrame();
69  virtual int getStartNumbering();
70  virtual int getStep();
71  virtual int getStatus();
72  virtual int getFramesCount();
73  virtual int getDigits();
74  virtual long long int getAverageSize();
75  virtual std::set<long> getReferencedChunks();
76  virtual std::set<std::string> getLayers();
77  virtual void clearLayers();
78 
79  virtual void setStartFrame(float _startFrame);
80  virtual void setEndFrame(float _endFrame);
81  virtual void setByFrame(float _byFrame);
82  virtual void setStartNumbering(int _startNumbering);
83  virtual void setStep(int _step);
84  virtual void setDigits(int _digits);
85  virtual void setStatus(int _status);
86  virtual void setFramesCount(int _framesCount);
87  virtual void setAverageSize(long long int _averageSize);
88  virtual void setReferencedChunks(const std::set<long>& referencedChunks);
89  virtual void addLayer(const std::string& layerName);
90 
91  virtual void AddReferencedChunk(long chunkId);
92 
93  private:
94 
95  float startFrame;
96  float endFrame;
97  float byFrame;
98  int startNumbering;
99  int step;
100  int digits;
101  int status;
102  int framesCount;
103  long long int averageSize;
104  std::set<std::string> layers;
105  std::set<long> referencedChunks;
106  };
107 
110 }
111 #endif
Class holding a missing frames group data.
Definition: MMFGroup.h:61