decUnicodeArgumentList Class Reference

Manages argument list with unicode strings. More...

#include <decUnicodeArgumentList.h>

List of all members.

Public Member Functions

Constructors and Destructors
 decUnicodeArgumentList ()
 Creates a new empty argument list object.
 ~decUnicodeArgumentList ()
 Frees the argument list object.
Management
int GetArgumentCount () const
 Retrieves the number of arguments.
const decUnicodeStringGetArgumentAt (int index) const
 Retrieves the argument at the given index.
void AddArgument (const decUnicodeString &argument)
 Adds an argument to the end of the list.
bool MatchesArgumentAt (int index, const char *string) const
 Determines if the given argument matches the provided utf8 string.
void RemoveAllArguments ()
 Removes all arguments.
void ParseCommand (const decUnicodeString &command)
 Parses command line passed into arguments which are then added to the end of the list.

Detailed Description

Manages argument list with unicode strings.

Provides support to parse unicode strings into an argument list using common separation schemas. Easy to use for obtaining commands in unicode format and turning them into a simple to use argument list.

Author:
Plüss Roland
Version:
1.0
Date:
2008

Constructor & Destructor Documentation

decUnicodeArgumentList::decUnicodeArgumentList (  )

Creates a new empty argument list object.

decUnicodeArgumentList::~decUnicodeArgumentList (  )

Frees the argument list object.


Member Function Documentation

void decUnicodeArgumentList::AddArgument ( const decUnicodeString argument )

Adds an argument to the end of the list.

const decUnicodeString* decUnicodeArgumentList::GetArgumentAt ( int  index ) const

Retrieves the argument at the given index.

int decUnicodeArgumentList::GetArgumentCount (  ) const [inline]

Retrieves the number of arguments.

bool decUnicodeArgumentList::MatchesArgumentAt ( int  index,
const char *  string 
) const

Determines if the given argument matches the provided utf8 string.

void decUnicodeArgumentList::ParseCommand ( const decUnicodeString command )

Parses command line passed into arguments which are then added to the end of the list.

Arguments are considered separated by a white space. Quoted text strings are considered one argument. This function is present for operating systems not providing an entry point function which already splits up the arguments.

void decUnicodeArgumentList::RemoveAllArguments (  )

Removes all arguments.


The documentation for this class was generated from the following file: