Changeset 1157 in Sophya for trunk/SophyaLib/BaseTools/dvlist.h
- Timestamp:
- Aug 29, 2000, 6:11:42 PM (25 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/dvlist.h
r1080 r1157 34 34 DVList& Merge(const DVList&); 35 35 36 int_8 GetI(string const& key, int_8 def=-1); 37 r_8 GetD(string const& key, r_8 def=-9.e19); 38 complex<r_8> GetZ(string const& key, complex<r_8> def=-9.e19); 39 string GetS(string const& key, char* def=""); 40 string GetComment(string const& key); 36 int_8 GetI(string const& key, int_8 def=-1) const; 37 r_8 GetD(string const& key, r_8 def=-9.e19) const; 38 complex<r_8> GetZ(string const& key, complex<r_8> def=-9.e19) const; 39 string GetS(string const& key, char* def="") const; 40 string GetComment(string const& key) const; 41 42 bool DeleteKey(string const& key); 43 bool HasKey(string const& key) const; 41 44 42 45 void SetI(string const& key, int_8 val); … … 47 50 void SetComment(string const& key, string const& comm); 48 51 52 MuTyV Get(string const& key) const ; 49 53 MuTyV& Get(string const& key); 54 /*! Returns the value associated with the name \b key */ 55 inline MuTyV operator() (string const& key) const { return Get(key); } 56 /*! Returns the value associated with the name \b key */ 57 inline MuTyV operator[] (string const& key) const { return Get(key); } 58 /*! Returns the global comment string associated with the object */ 59 inline string Comment() const { return(comment); } 50 60 /*! Returns the value associated with the name \b key */ 51 61 inline MuTyV& operator() (string const& key) { return Get(key); }
Note:
See TracChangeset
for help on using the changeset viewer.