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

TimeStamp Struct Reference

#include <infolines.h>

Inheritance diagram for TimeStamp:

Inheritance graph
[legend]
Collaboration diagram for TimeStamp:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TimeStamp ()
virtual operator const char * () const

Protected Attributes

char * _infoLine

Constructor & Destructor Documentation

TimeStamp::TimeStamp  ) 
 

Definition at line 59 of file infolines.cxx.

References InfoLine::_infoLine.

00060 { 
00061    char * date;
00062    time_t tp;   
00063 
00064    char expl[]="# Created      : ";
00065    if (time(&tp)==-1)
00066    {
00067      _infoLine = new char[80]; 
00068      strcpy(_infoLine," Error in time() "); 
00069       return;
00070    }
00071    date=asctime(localtime(&tp)); 
00072    _infoLine = new char[strlen(expl)+strlen(date)+1];
00073    strcpy(_infoLine,expl);
00074    strcat(_infoLine,date);
00075 }


Member Function Documentation

virtual InfoLine::operator const char *  )  const [inline, virtual, inherited]
 

Definition at line 79 of file infolines.h.

References InfoLine::_infoLine.

00079 { return _infoLine; }


Member Data Documentation

char* InfoLine::_infoLine [protected, inherited]
 

Definition at line 75 of file infolines.h.

Referenced by CmdLine::CmdLine(), ExecLocation::ExecLocation(), InfoLine::InfoLine(), InfoLine::operator const char *(), Platform::Platform(), TimeStamp(), User::User(), UserHomeDir::UserHomeDir(), and InfoLine::~InfoLine().


The documentation for this struct was generated from the following files:
Generated on Mon Apr 25 01:16:03 2005 for Parquete by doxygen 1.3.2