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 00042 //--------------------------------------------------- writeRecord ------------ 00043 virtual void writeRecord (std::ostream & fix, std::ostream & var) const; 00044 00045 00046 public: 00047 00048 static const NCode_t NCODE; 00050 00051 00052 //--------------------------------------------------- Library_t -------------- 00055 Library_t ( ) 00056 { 00057 00058 } 00059 00060 00061 //--------------------------------------------------- Library_t -------------- 00064 Library_t (const Library_t & source) 00065 { 00066 *this = source; 00067 } 00068 00069 00070 //--------------------------------------------------- ~Library_t ------------- 00073 ~Library_t ( ) 00074 { 00075 00076 } 00077 00078 00079 //--------------------------------------------------- clear ------------------ 00080 virtual void clear ( ) 00081 { 00082 Universal_t::clear( ); 00083 dist_m . clear( ); 00084 } 00085 00086 00087 //--------------------------------------------------- getDistribution -------- 00092 Distribution_t getDistribution ( ) const 00093 { 00094 return dist_m; 00095 } 00096 00097 00098 //--------------------------------------------------- getNCode --------------- 00099 virtual NCode_t getNCode ( ) const 00100 { 00101 return Library_t::NCODE; 00102 } 00103 00104 00105 //--------------------------------------------------- readMessage ------------ 00106 virtual void readMessage (const Message_t & msg); 00107 00108 00109 //--------------------------------------------------- setDistribution -------- 00115 void setDistribution (Distribution_t dist) 00116 { 00117 dist_m = dist; 00118 } 00119 00120 //--------------------------------------------------- writeMessage ----------- 00121 virtual void writeMessage (Message_t & msg) const; 00122 00123 }; 00124 00125 } // namespace AMOS 00126 00127 #endif // #ifndef __Library_AMOS_HH