Webmaster  |  Imprint 
Platinum
Platinum C++ Framework
Main  |  License  |  Documentation  |  Download  |  Support 

Arg< const char * > Class Template Reference

Special handling for "const char*". More...

#include <Pt/Arg.h>

List of all members.

Public Member Functions

 Arg (const char *def=0)
 Arg (int &argc, char *argv[], char ch, const char *def=0)
 Arg (int &argc, char *argv[], const char *str, const char *def=0)
 Arg (int &argc, char *argv[])
bool set (int &argc, char *argv[], char ch)
 Constructor for the short form.
bool set (int &argc, char *argv[], const char *str, const char *def=0)
 setter for the long form.
bool set (int &argc, char *argv[])
 extracts the next parameter.
const char * getValue () const
 returns the extracted value.
 operator const char * () const
 argument is convertible to "const char*"
bool isSet () const
 returns true, when the option is not set and the default is used.


Detailed Description

template<>
class Pt::Arg< const char * >

"const char*" is not extracted with a stream. This is more flexible and easier to process. Also parameters can contain spaces.
Copyright © 2003-2007 The Pt Development Team
Pt 1.0