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

CmdLine Struct Reference

#include <infolines.h>

Inheritance diagram for CmdLine:

Inheritance graph
[legend]
Collaboration diagram for CmdLine:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CmdLine (int argc, const char *argv[])
virtual operator const char * () const

Protected Attributes

char * _infoLine

Constructor & Destructor Documentation

CmdLine::CmdLine int  argc,
const char *  argv[]
 

Definition at line 77 of file infolines.cxx.

References InfoLine::_infoLine.

00078 {
00079   char expl[]="# Command line :";
00080   int len=strlen(expl), n=argc;
00081   while (n--) len+=(1+strlen(argv[n])); 
00082   if (len<255) len=255;
00083 
00084   _infoLine=new char[len+3]; 
00085 
00086   char * infoPtr=_infoLine;
00087   strcpy(infoPtr,expl);
00088   infoPtr += strlen(expl);
00089   infoPtr[0]=' ';
00090   infoPtr++;
00091 
00092   n=-1;
00093   while (++n<argc)
00094   {
00095       strcpy(infoPtr,argv[n]);
00096       infoPtr += strlen(argv[n]);
00097       infoPtr[0]=' '; 
00098       infoPtr++;
00099   }
00100   infoPtr[0]='\n';
00101   infoPtr[1]='\0';
00102 }


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(), ExecLocation::ExecLocation(), InfoLine::InfoLine(), InfoLine::operator const char *(), Platform::Platform(), TimeStamp::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:14:09 2005 for Parquete by doxygen 1.3.2