Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

IDEA::CommandLineArguments Class Reference
[Utilities]

Wrapper to maintain the command-line arguments and make them accessable throughout the process. More...

#include <CommandLineArguments.hh>

Inheritance diagram for IDEA::CommandLineArguments:

IDEA::Singleton< CommandLineArguments > List of all members.

Public Methods

 ~CommandLineArguments ()
 Destructor, releases the value.

void setArguments (int count, char **value)
 Stores the count and a copy of value.

char ** getValue () const
 Returns a copy of the value.

int getCount () const
 Returns the argument count.


Static Public Methods

CommandLineArguments * instance ()

Static Protected Methods

CommandLineArguments *& getInstance ()
 The instance.

void release ()

Private Methods

 CommandLineArguments ()
 Constructor.


Private Attributes

int m_Count
char ** m_Value

Friends

class Singleton< CommandLineArguments >

Detailed Description

Wrapper to maintain the command-line arguments and make them accessable throughout the process.


Constructor & Destructor Documentation

IDEA::CommandLineArguments::~CommandLineArguments  
 

Destructor, releases the value.

IDEA::CommandLineArguments::CommandLineArguments   [private]
 

Constructor.


Member Function Documentation

int IDEA::CommandLineArguments::getCount  
 

Returns the argument count.

CommandLineArguments*& IDEA::Singleton< CommandLineArguments >::getInstance   [inline, static, protected, inherited]
 

The instance.

This pattern is used to prevent "static initialization order fiasco" (Google this for better understanding)

char ** IDEA::CommandLineArguments::getValue  
 

Returns a copy of the value.

CommandLineArguments* IDEA::Singleton< CommandLineArguments >::instance   [inline, static, inherited]
 

void IDEA::Singleton< CommandLineArguments >::release   [inline, static, protected, inherited]
 

void IDEA::CommandLineArguments::setArguments int    count,
char **    value
 

Stores the count and a copy of value.


Friends And Related Function Documentation

friend class Singleton< CommandLineArguments > [friend]
 


Member Data Documentation

int IDEA::CommandLineArguments::m_Count [private]
 

char** IDEA::CommandLineArguments::m_Value [private]
 


Contact information
© IDEA
Generated on Fri Feb 3 17:09:45 2006 for IDEA.