Mercurial > octave
diff liboctave/oct-time.h @ 3465:996bb7ea4507
[project @ 2000-01-21 07:48:25 by jwe]
author | jwe |
---|---|
date | Fri, 21 Jan 2000 07:51:06 +0000 |
parents | 4d33b1e56bff |
children | 5eef8a2294bd |
line wrap: on
line diff
--- a/liboctave/oct-time.h Thu Jan 20 09:49:30 2000 +0000 +++ b/liboctave/oct-time.h Fri Jan 21 07:51:06 2000 +0000 @@ -295,6 +295,35 @@ void init (const octave_time& ot); }; +class +octave_strptime : public octave_base_tm +{ +public: + + octave_strptime (const string& str, const string& fmt) + : octave_base_tm () { init (str, fmt); } + + octave_strptime (const octave_strptime& s) + : octave_base_tm (s) { nchars = s.nchars; } + + octave_strptime& operator = (const octave_strptime& s) + { + octave_base_tm::operator = (s); + nchars = s.nchars; + return *this; + } + + int characters_converted (void) const { return nchars; } + + ~octave_strptime (void) { } + +private: + + int nchars; + + void init (const string& str, const string& fmt); +}; + #endif /*