#include <infolines.h>
Inheritance diagram for CmdLine:


Public Member Functions | |
| CmdLine (int argc, const char *argv[]) | |
| virtual | operator const char * () const |
Protected Attributes | |
| char * | _infoLine |
|
||||||||||||
|
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 }
|
|
|
Definition at line 79 of file infolines.h. References InfoLine::_infoLine.
00079 { return _infoLine; }
|
|
|
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(). |
1.3.2