CARMA C++
RtdArrayTemplate.h
Go to the documentation of this file.
1 // $Id: RtdArrayTemplate.h,v 1.1 2013/07/10 15:28:30 eml Exp $
2 
3 #ifndef SZA_UTIL_RTDARRAYTEMPLATE_H
4 #define SZA_UTIL_RTDARRAYTEMPLATE_H
5 
15 #include "carma/szautil/NetDat.h"
16 #include "carma/szautil/DataType.h"
17 
18 #include "carma/szaarrayutils/arraytemplate.h"
19 
20 namespace sza {
21 
22  namespace array {
23  class NetBuf;
24  }
25 
26  namespace util {
27 
28  class RtdArrayTemplate : public NetDat {
29  public:
30 
34  RtdArrayTemplate();
35  RtdArrayTemplate(ArrayTemplate* arrayTemplate);
36 
40  virtual ~RtdArrayTemplate();
41 
42  void serialize();
43  void deserialize(const std::vector<unsigned char>& bytes);
44  void deserialize(const unsigned char* bytes);
45  ArrayTemplate* getArrayTemplate();
46 
47  void print();
48  void constructAsciiTemplate();
49  void compressAsciiTemplate();
50 
51  void writeToFile();
52 
53  public:
54 
55  ArrayTemplate* arrayTemplate_;
56  bool external_;
57  std::string asciiTemplate_;
58  std::map<unsigned, RegBlockTemp*> regTempMap_;
59 
60  void addTo(std::vector<unsigned char>& arr, unsigned char* ptr, unsigned nbyte);
61 
62  void setTo(ArrayTemplate* arrayTemplate);
63 
64  }; // End class RtdArrayTemplate
65 
66  } // End namespace util
67 } // End namespace sza
68 
69 
70 
71 #endif // End #ifndef SZA_UTIL_RTDARRAYTEMPLATE_H
Tagged: Tue Jun 22 22:32:16 UTC 2004.
Tagged: Wed Jul 6 13:41:09 PDT 2005.
......................................................................
Definition: arraytemplate.h:27