00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 #ifndef __Library_AMOS_HH 00011 #define __Library_AMOS_HH 1 00012 00013 #include "Universal_AMOS.hh" 00014 00015 00016 00017 00018 namespace AMOS { 00019 00020 //================================================ Library_t =================== 00027 //============================================================================== 00028 class Library_t : public Universal_t 00029 { 00030 00031 private: 00032 00033 Distribution_t dist_m; 00034 00035 00036 protected: 00037 00038 //--------------------------------------------------- readRecord ------------- 00039 virtual void readRecord (std::istream & fix, std::istream & var); 00040 00041 //--------------------------------------------------- readRecordFix ---------- 00042 virtual void readRecordFix (std::istream & fix); 00043 00044 //--------------------------------------------------- writeRecord ------------ 00045 virtual void writeRecord (std::ostream & fix, std::ostream & var) const; 00046 00047 00048 public: 00049 00050 static const NCode_t NCODE; 00052 00053 00054 //--------------------------------------------------- Library_t -------------- 00057 Library_t ( ) 00058 { 00059 00060 } 00061 00062 00063 //--------------------------------------------------- Library_t -------------- 00066 Library_t (const Library_t & source) 00067 { 00068 *this = source; 00069 } 00070 00071 00072 //--------------------------------------------------- ~Library_t ------------- 00075 ~Library_t ( ) 00076 { 00077 00078 } 00079 00080 00081 //--------------------------------------------------- clear ------------------ 00082 virtual void clear ( ) 00083 { 00084 Universal_t::clear( ); 00085 dist_m . clear( ); 00086 } 00087 00088 00089 //--------------------------------------------------- getDistribution -------- 00094 Distribution_t getDistribution ( ) const 00095 { 00096 return dist_m; 00097 } 00098 00099 00100 //--------------------------------------------------- getNCode --------------- 00101 virtual NCode_t getNCode ( ) const 00102 { 00103 return Library_t::NCODE; 00104 } 00105 00106 00107 //--------------------------------------------------- readMessage ------------ 00108 virtual void readMessage (const Message_t & msg); 00109 00110 00111 //--------------------------------------------------- setDistribution -------- 00117 void setDistribution (Distribution_t dist) 00118 { 00119 dist_m = dist; 00120 } 00121 00122 //--------------------------------------------------- writeMessage ----------- 00123 virtual void writeMessage (Message_t & msg) const; 00124 00125 }; 00126 00127 } // namespace AMOS 00128 00129 #endif // #ifndef __Library_AMOS_HH
1.4.7