Changeset 2826 in Sophya for trunk/SophyaLib/BaseTools/mutyv.h


Ignore:
Timestamp:
Nov 2, 2005, 9:52:39 AM (20 years ago)
Author:
ansari
Message:

1/ Correction bug TimeStamp::ToDays() + petites amelioration
2/ Prise en compte du type TimeStamp dans MuTyV (sous forme de r_8 en interne)
3/ Adaptation DVList a modifs MuTyV (typ TimeStamp) et R/W PPersist

+ Petites corrections et MAJ num.version , Reza 2 Nov 2005

File:
1 edited

Legend:

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

    r2322 r2826  
    1010#include <string>
    1111#include <complex>
     12#include "timestamp.h"
     13
    1214#include <iostream>
    1315
     
    2426    MTVFloat,
    2527    MTVComplex,
    26     MTVString
     28    MTVString,
     29    MTVTimeStamp
    2730  };
    2831
     
    4245         MuTyV(char const* s); 
    4346         MuTyV(string const& s);
    44  
     47         MuTyV(TimeStamp const& ts);
     48
    4549         ~MuTyV();
    4650 
     
    5660  inline MuTyV & operator= (complex<r_8> const& v) { typ = MTVComplex; dv = (r_8)v.real();  dv_im = v.imag();
    5761                                                    iv = (int_8)dv;  return(*this); }
    58          char*  operator= (char* s);
    59          string& operator= (string& s);
     62         const char*  operator= (const char* s);
     63         string const& operator= (string const & s);
     64         TimeStamp const& operator= (TimeStamp const & s);
    6065
    6166  inline operator uint_2() const { return((uint_2)iv); }
     
    7075
    7176         operator string() const ;
     77         operator TimeStamp() const ;
    7278
    7379  inline MTVType Type() const { return typ; }
     
    8187  r_8 dv;
    8288  r_8 dv_im;   /* for holding imaginary part of a complex */
    83   string * strv; 
     89  string * strv;
    8490  MTVType typ;
    8591
Note: See TracChangeset for help on using the changeset viewer.