2004 by Marc J. Rochkind. All rights reserved. Portions marked "Open Source" may be copied under license.


Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

Ux::TimeString Class Reference
[C++ Wrapper for Standard UNIX Functions]

Inheritance diagram for Ux::TimeString:

Ux::Base List of all members.

Detailed Description

Clearer replacement for Timestr (char *).

Definition at line 92 of file uxtime.hpp.

Public Member Functions

 TimeString (void)
 TimeString (time_t t, bool keep_nl=true)
void set (const char *s="")
 operator const char * () const
void set (time_t t, bool keep_nl=true)

Protected Attributes

char timestr [26]

Constructor & Destructor Documentation

Ux::TimeString::TimeString void   )  [inline]

Definition at line 99 of file uxtime.hpp.

References set().

Ux::TimeString::TimeString time_t  t,
bool  keep_nl = true

Definition at line 103 of file uxtime.hpp.

References set().

Member Function Documentation

Ux::TimeString::operator const char *  )  const [inline]

Definition at line 112 of file uxtime.hpp.

void TimeString::set time_t  t,
bool  keep_nl = true

Sets string from TimeSec or time_t (calls ctime). Optionally removes newline.

Definition at line 177 of file uxtime.cpp.

References errno, and timestr.

void Ux::TimeString::set const char *  s = ""  )  [inline]

Definition at line 107 of file uxtime.hpp.

Referenced by Ux::TimeParts::set(), and TimeString().

Member Data Documentation

char Ux::TimeString::timestr[26] [protected]

Definition at line 96 of file uxtime.hpp.

Referenced by Ux::TimeParts::get_string(), and set().

The documentation for this class was generated from the following files:
Generated on Fri Apr 23 10:57:19 2004 for AUP2 Example Source by doxygen 1.3.1