NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CNcbiArguments Class Reference

Search Toolkit Book for CNcbiArguments

CNcbiArguments –. More...

#include <corelib/ncbienv.hpp>

+ Collaboration diagram for CNcbiArguments:

Public Member Functions

 CNcbiArguments (int argc, const char *const *argv, const string &program_name=kEmptyStr, const string &real_name=kEmptyStr)
 Constructor. More...
 
virtual ~CNcbiArguments (void)
 Destructor. More...
 
 CNcbiArguments (const CNcbiArguments &args)
 Copy constructor. More...
 
CNcbiArgumentsoperator= (const CNcbiArguments &args)
 Assignment operator. More...
 
void Reset (int argc, const char *const *argv, const string &program_name=kEmptyStr, const string &real_name=kEmptyStr)
 Reset arguments. More...
 
SIZE_TYPE Size (void) const
 Get size (number) of arguments. More...
 
const stringoperator[] (SIZE_TYPE pos) const
 Get the argument specified by "pos". More...
 
void Add (const string &arg)
 Add a new argument. More...
 
void Shift (int n=1)
 Delete arguments from 1 to n. More...
 
const stringGetProgramName (EFollowLinks follow_links=eIgnoreLinks) const
 Get program name. More...
 
string GetProgramBasename (EFollowLinks follow_links=eIgnoreLinks) const
 Get program base name. More...
 
string GetProgramDirname (EFollowLinks follow_links=eIgnoreLinks) const
 Get program directory name. More...
 
void SetProgramName (const string &program_name, const string &real_name=kEmptyStr)
 Set program name. More...
 

Private Attributes

string m_ProgramName
 Program name if different from the default m_Args[0]. More...
 
deque< stringm_Args
 Queue of arguments. More...
 
string m_ResolvedName
 
CFastMutex m_ResolvedNameMutex
 

Detailed Description

CNcbiArguments –.

Store application command-line arguments & application name.

CNcbiArgument provides a data structure for storing and accessing the command line arguments and application name.

Definition at line 235 of file ncbienv.hpp.


The documentation for this class was generated from the following files:
Modified on Sun Apr 14 05:29:38 2024 by modify_doxy.py rev. 669887