Changeset 3572 in Sophya for trunk/SophyaLib/BaseTools/dvlist.h


Ignore:
Timestamp:
Feb 7, 2009, 10:50:34 PM (17 years ago)
Author:
cmv
Message:

char* -> const char* pour regler les problemes de deprecated string const... + comparaison unsigned signed + suppression EVOL_PLANCK rz+cmv 07/02/2009

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaLib/BaseTools/dvlist.h

    r2826 r3572  
    2525                    DVList();
    2626                    DVList(const DVList&);
    27                     DVList(char *flnm);
     27                    DVList(const char *flnm);
    2828
    2929  virtual           ~DVList();
     
    3535
    3636  //! 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()); }
    3838  //! 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()); }
    4040
    4141  int_8             GetI(string const& key, int_8 def=-1) const;
    4242  r_8               GetD(string const& key, r_8 def=-9.e19) const;
    4343  complex<r_8>      GetZ(string const& key, complex<r_8> def=-9.e19) const;
    44   string            GetS(string const& key, char* def="") const;
     44  string            GetS(string const& key, const char* def="") const;
    4545  string            GetComment(string const& key) const;
    4646
     
    5151  void              SetD(string const& key, r_8 val);
    5252  void              SetZ(string const& key, complex<r_8> val);
    53   void              SetS(string const& key, char const*  val);
     53  void              SetS(string const& key, const char *  val);
    5454  void              SetS(string const& key, string const& val);
    5555  void              SetT(string const& key, TimeStamp const& val);
Note: See TracChangeset for help on using the changeset viewer.