Changeset 2826 in Sophya for trunk/SophyaLib/BaseTools/mutyv.h
- Timestamp:
- Nov 2, 2005, 9:52:39 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SophyaLib/BaseTools/mutyv.h
r2322 r2826 10 10 #include <string> 11 11 #include <complex> 12 #include "timestamp.h" 13 12 14 #include <iostream> 13 15 … … 24 26 MTVFloat, 25 27 MTVComplex, 26 MTVString 28 MTVString, 29 MTVTimeStamp 27 30 }; 28 31 … … 42 45 MuTyV(char const* s); 43 46 MuTyV(string const& s); 44 47 MuTyV(TimeStamp const& ts); 48 45 49 ~MuTyV(); 46 50 … … 56 60 inline MuTyV & operator= (complex<r_8> const& v) { typ = MTVComplex; dv = (r_8)v.real(); dv_im = v.imag(); 57 61 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); 60 65 61 66 inline operator uint_2() const { return((uint_2)iv); } … … 70 75 71 76 operator string() const ; 77 operator TimeStamp() const ; 72 78 73 79 inline MTVType Type() const { return typ; } … … 81 87 r_8 dv; 82 88 r_8 dv_im; /* for holding imaginary part of a complex */ 83 string * strv; 89 string * strv; 84 90 MTVType typ; 85 91
Note:
See TracChangeset
for help on using the changeset viewer.