Changeset 3572 in Sophya for trunk/SophyaLib/BaseTools
- Timestamp:
- Feb 7, 2009, 10:50:34 PM (17 years ago)
- Location:
- trunk/SophyaLib/BaseTools
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/dvlist.cc
r3233 r3572 115 115 /* --Methode-- */ 116 116 /*! Copy constructor - Object initialized using the PPF file \b flnm */ 117 DVList::DVList(c har *flnm)117 DVList::DVList(const char *flnm) 118 118 { 119 119 PInPersist s(flnm); … … 192 192 // int_8 GetI(string const& key, int_8 def=-1) 193 193 // r_8 GetD(string const& key, r_8 def=-9.e19) 194 // string GetS(string const& key, c har* def="")194 // string GetS(string const& key, const char* def="") 195 195 // Retourne la valeur de la variable de nom "key" et de type entier, réél, 196 196 // chaine de caracteres. … … 245 245 /*! Returns the value corresponding to name \b key, converted to string 246 246 Default value \b def is returned if name \b key not found */ 247 string DVList::GetS(string const& key, c har* def) const247 string DVList::GetS(string const& key, const char* def) const 248 248 { 249 249 ValList::const_iterator it = mvlist.find(key); … … 265 265 // void SetD(string const& key, r_8 val) 266 266 // void SetZ(string const& key, complex<r_8> val) 267 // void SetS(string const& key, c har* val)267 // void SetS(string const& key, const char* val) 268 268 // void SetS(string const& key, string val) 269 269 // Crée la variable de nom "key", de type entier, double, complexe, string et … … 322 322 /* --Methode-- */ 323 323 /*! Appends or sets the string value \b val in the list with name \b key */ 324 void DVList::SetS(string const& key, c har const* val)324 void DVList::SetS(string const& key, const char * val) 325 325 { 326 326 MuTyV div(val); -
trunk/SophyaLib/BaseTools/dvlist.h
r2826 r3572 25 25 DVList(); 26 26 DVList(const DVList&); 27 DVList(c har *flnm);27 DVList(const char *flnm); 28 28 29 29 virtual ~DVList(); … … 35 35 36 36 //! Returns the number of elements (variables) in DVList object 37 inline int Size(){ return(mvlist.size()); }37 inline size_t Size() const { return(mvlist.size()); } 38 38 //! Returns the number of elements (variables) in DVList object 39 inline int NVar(){ return(mvlist.size()); }39 inline size_t NVar() const { return(mvlist.size()); } 40 40 41 41 int_8 GetI(string const& key, int_8 def=-1) const; 42 42 r_8 GetD(string const& key, r_8 def=-9.e19) const; 43 43 complex<r_8> GetZ(string const& key, complex<r_8> def=-9.e19) const; 44 string GetS(string const& key, c har* def="") const;44 string GetS(string const& key, const char* def="") const; 45 45 string GetComment(string const& key) const; 46 46 … … 51 51 void SetD(string const& key, r_8 val); 52 52 void SetZ(string const& key, complex<r_8> val); 53 void SetS(string const& key, c har const* val);53 void SetS(string const& key, const char * val); 54 54 void SetS(string const& key, string const& val); 55 55 void SetT(string const& key, TimeStamp const& val); -
trunk/SophyaLib/BaseTools/ppfbinstream.cc
r3525 r3572 511 511 GetI8(i8); // nb objets toplevel 512 512 GetU8(ui8); // nb de nametag 513 for( intkt=0; kt<ui8; kt++) {513 for(uint_8 kt=0; kt<ui8; kt++) { 514 514 GetRawI4(i4); 515 515 s->seekg(i4,ios::cur); … … 994 994 int_4 tsz; 995 995 GetRawI4(tsz); 996 if (tsz != sz)996 if (tsz != (int_4)sz) 997 997 throw FileFormatExc("PPFBinaryInputStream::GetPosTagTable Size mismatch "); 998 998 for(int kk=0; kk<tsz; kk++) … … 1036 1036 // Pour indenter lors de l'impression 1037 1037 #define _MXINDENT_ 10 1038 c har * indents[_MXINDENT_+1] = {""," ", " ", " ", " ", " ",1038 const char * indents[_MXINDENT_+1] = {""," ", " ", " ", " ", " ", 1039 1039 " ", " ", " ", 1040 1040 " ", " "}; … … 1150 1150 GetI8s(stats,8); 1151 1151 GetRawU8(ui8); // nb de nametag 1152 for( intkt=0; kt<ui8; kt++) {1152 for(uint_8 kt=0; kt<ui8; kt++) { 1153 1153 string tname; 1154 1154 GetRawI8(i8); -
trunk/SophyaLib/BaseTools/sophyainit.cc
r3532 r3572 193 193 double SophyaInitiator::GetVersion(string& svers) 194 194 { 195 c har* compiler = 0;195 const char* compiler = 0; 196 196 #ifdef __GNUG__ 197 197 compiler = "gcc " __VERSION__; -
trunk/SophyaLib/BaseTools/sversion.h
r3532 r3572 3 3 4 4 #define SOPHYA_VERSION 2.1 5 #define SOPHYA_REVISION 256 #define SOPHYA_TAG "V_ Sep2008"5 #define SOPHYA_REVISION 30 6 #define SOPHYA_TAG "V_Fev2009" 7 7 8 8 #endif
Note:
See TracChangeset
for help on using the changeset viewer.