Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | Private Attributes

octave_strptime Class Reference

#include "oct-time.h"

Inheritance diagram for octave_strptime:
Inheritance graph
[legend]
Collaboration diagram for octave_strptime:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 octave_strptime (const std::string &str, const std::string &fmt)
 octave_strptime (const octave_strptime &s)
 ~octave_strptime (void)
std::string asctime (void) const
int characters_converted (void) const
octave_base_tmgmtoff (long v)
long gmtoff (void) const
int hour (void) const
octave_base_tmhour (int v)
octave_base_tmisdst (int v)
int isdst (void) const
octave_base_tmmday (int v)
int mday (void) const
int min (void) const
octave_base_tmmin (int v)
int mon (void) const
octave_base_tmmon (int v)
octave_strptimeoperator= (const octave_strptime &s)
int sec (void) const
octave_base_tmsec (int v)
std::string strftime (const std::string &fmt) const
int usec (void) const
octave_base_tmusec (int v)
int wday (void) const
octave_base_tmwday (int v)
int yday (void) const
octave_base_tmyday (int v)
int year (void) const
octave_base_tmyear (int v)
octave_base_tmzone (const std::string &s)
std::string zone (void) const

Protected Member Functions

void init (void *p)

Protected Attributes

long tm_gmtoff
int tm_hour
int tm_isdst
int tm_mday
int tm_min
int tm_mon
int tm_sec
int tm_usec
int tm_wday
int tm_yday
int tm_year
std::string tm_zone

Private Member Functions

void init (const std::string &str, const std::string &fmt)

Private Attributes

int nchars

Detailed Description

Definition at line 335 of file oct-time.h.


Constructor & Destructor Documentation

octave_strptime::octave_strptime ( const std::string &  str,
const std::string &  fmt 
) [inline]

Definition at line 341 of file oct-time.h.

References octave_base_tm::init().

octave_strptime::octave_strptime ( const octave_strptime s  )  [inline]

Definition at line 347 of file oct-time.h.

octave_strptime::~octave_strptime ( void   )  [inline]

Definition at line 359 of file oct-time.h.


Member Function Documentation

std::string octave_base_tm::asctime ( void   )  const [inline, inherited]

Definition at line 238 of file oct-time.h.

References octave_base_tm::strftime().

int octave_strptime::characters_converted ( void   )  const [inline]

Definition at line 357 of file oct-time.h.

Referenced by DEFUN_DLD().

octave_base_tm& octave_base_tm::gmtoff ( long  v  )  [inherited]
long octave_base_tm::gmtoff ( void   )  const [inline, inherited]

Definition at line 220 of file oct-time.h.

References octave_base_tm::tm_gmtoff.

Referenced by octave_time::octave_time().

int octave_base_tm::hour ( void   )  const [inline, inherited]
octave_base_tm& octave_base_tm::hour ( int  v  )  [inherited]
void octave_strptime::init ( const std::string &  str,
const std::string &  fmt 
) [private]

Definition at line 250 of file oct-time.cc.

References nchars, and strsave().

void octave_base_tm::init ( void *  p  )  [protected, inherited]
int octave_base_tm::isdst ( void   )  const [inline, inherited]

Definition at line 219 of file oct-time.h.

References octave_base_tm::tm_isdst.

Referenced by extract_tm(), mk_tm_map(), and octave_time::octave_time().

octave_base_tm& octave_base_tm::isdst ( int  v  )  [inherited]
int octave_base_tm::mday ( void   )  const [inline, inherited]
octave_base_tm& octave_base_tm::mday ( int  v  )  [inherited]
octave_base_tm& octave_base_tm::min ( int  v  )  [inherited]
int octave_base_tm::min ( void   )  const [inline, inherited]
octave_base_tm& octave_base_tm::mon ( int  v  )  [inherited]
int octave_base_tm::mon ( void   )  const [inline, inherited]

Definition at line 215 of file oct-time.h.

References octave_base_tm::tm_mon.

Referenced by extract_tm(), mk_tm_map(), and octave_time::octave_time().

octave_strptime& octave_strptime::operator= ( const octave_strptime s  )  [inline]

Definition at line 350 of file oct-time.h.

References nchars, and octave_base_tm::operator=().

int octave_base_tm::sec ( void   )  const [inline, inherited]
octave_base_tm& octave_base_tm::sec ( int  v  )  [inherited]
std::string octave_base_tm::strftime ( const std::string &  fmt  )  const [inherited]
int octave_base_tm::usec ( void   )  const [inline, inherited]

Definition at line 210 of file oct-time.h.

References octave_base_tm::tm_usec.

Referenced by extract_tm(), mk_tm_map(), and octave_time::octave_time().

octave_base_tm& octave_base_tm::usec ( int  v  )  [inherited]
int octave_base_tm::wday ( void   )  const [inline, inherited]

Definition at line 217 of file oct-time.h.

References octave_base_tm::tm_wday.

Referenced by extract_tm(), mk_tm_map(), and octave_time::octave_time().

octave_base_tm& octave_base_tm::wday ( int  v  )  [inherited]
int octave_base_tm::yday ( void   )  const [inline, inherited]

Definition at line 218 of file oct-time.h.

References octave_base_tm::tm_yday.

Referenced by extract_tm(), mk_tm_map(), and octave_time::octave_time().

octave_base_tm& octave_base_tm::yday ( int  v  )  [inherited]
octave_base_tm& octave_base_tm::year ( int  v  )  [inherited]
int octave_base_tm::year ( void   )  const [inline, inherited]

Definition at line 216 of file oct-time.h.

References octave_base_tm::tm_year.

Referenced by extract_tm(), mk_tm_map(), and octave_time::octave_time().

std::string octave_base_tm::zone ( void   )  const [inline, inherited]

Definition at line 221 of file oct-time.h.

References octave_base_tm::tm_zone.

Referenced by extract_tm(), mk_tm_map(), and octave_time::octave_time().

octave_base_tm & octave_base_tm::zone ( const std::string &  s  )  [inherited]

Definition at line 131 of file oct-time.cc.


Member Data Documentation

Definition at line 363 of file oct-time.h.

Referenced by init(), and operator=().

long octave_base_tm::tm_gmtoff [protected, inherited]
int octave_base_tm::tm_hour [protected, inherited]
int octave_base_tm::tm_isdst [protected, inherited]
int octave_base_tm::tm_mday [protected, inherited]
int octave_base_tm::tm_min [protected, inherited]
int octave_base_tm::tm_mon [protected, inherited]
int octave_base_tm::tm_sec [protected, inherited]
int octave_base_tm::tm_usec [protected, inherited]
int octave_base_tm::tm_wday [protected, inherited]
int octave_base_tm::tm_yday [protected, inherited]
int octave_base_tm::tm_year [protected, inherited]
std::string octave_base_tm::tm_zone [protected, inherited]

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines