CARMA C++
NetArrayDataFrameManager.h
Go to the documentation of this file.
1 // $Id: NetArrayDataFrameManager.h,v 1.3 2013/07/09 17:12:00 eml Exp $
2 
3 #ifndef SZA_UTIL_NETARRAYDATAFRAMEMANAGER_H
4 #define SZA_UTIL_NETARRAYDATAFRAMEMANAGER_H
5 
17 #include "carma/szautil/NetUnion.h"
18 
19 namespace sza {
20  namespace util {
21 
22  class NetArrayDataFrameManager : public ArrayDataFrameManager,
23  public NetUnion {
24  public:
25 
26  enum {
27  MEM_TEMPLATE = 0x1,
28  MEM_FRAME = 0x2,
29  MEM_UCVEC = 0x3
30  };
31 
35  NetArrayDataFrameManager();
36 
40  virtual ~NetArrayDataFrameManager();
41 
42  // Over load the base-class NetUnion deserialize class
43 
44  void deserialize(const std::vector<unsigned char>& bytes);
45  void deserializeNativeOrder(const std::vector<unsigned char>& bytes);
46 
47  void setTo(ArrayTemplate* arrayTemplate);
48  void setTo(unsigned id);
49 
50  void resetArrayMap();
51 
52  ArrayTemplate* getArrayTemplate();
53 
54  void resize();
55 
56  // This NetUnion has a NetArrayTemplate, and the frame data from
57  // the base-class ArrayDataFrameManager as parts of the union
58 
59  NetArrayTemplate nat_;
60  std::vector<unsigned char> ucvec_;
61 
62  }; // End class NetArrayDataFrameManager
63 
64  } // End namespace util
65 } // End namespace sza
66 
67 
68 
69 #endif // End #ifndef SZA_UTIL_NETARRAYDATAFRAMEMANAGER_H
void resize(unsigned int nBuffer)
Resize the data frame.
Tagged: Sat Mar 20 05:20:30 UTC 2004.
Tagged: Tue Aug 24 16:09:09 PDT 2010.
......................................................................
Definition: arraytemplate.h:27