n2nc::utils::args::Argument Class Reference

This class represent a already istanciated argument. More...

#include <argument.h>

Collaboration diagram for n2nc::utils::args::Argument:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Argument (string name, string param)
bool validate (std::vector< ValidArgument > &validargs) throw ()
bool checkForDependecies (vector< Argument > &args)
bool checkForConflicts (vector< Argument > &args)
string toString ()
string param ()

Friends

class ArgumentsHelper


Detailed Description

This class represent a already istanciated argument.

Author:
fabsoft <fabsoft@gmail.com>

Definition at line 17 of file argument.h.


Constructor & Destructor Documentation

n2nc::utils::args::Argument::Argument ( string  name,
string  param 
)

Creates a new argument, but leave it unchecked

Definition at line 7 of file argument.cpp.


Member Function Documentation

bool n2nc::utils::args::Argument::validate ( std::vector< ValidArgument > &  validargs  )  throw ()

check if the argument has valid name and parameter

Definition at line 13 of file argument.cpp.

bool n2nc::utils::args::Argument::checkForDependecies ( vector< Argument > &  args  ) 

Tests if the dependencies arguments are satisfied.

Definition at line 68 of file argument.cpp.

References n2nc::utils::args::ValidArgument::dependsof.

bool n2nc::utils::args::Argument::checkForConflicts ( vector< Argument > &  args  ) 

Tests if there some conflictual argument.

Returns:
true if no conflicts are checked.

Definition at line 96 of file argument.cpp.

References n2nc::utils::args::ValidArgument::conflictsto.

string n2nc::utils::args::Argument::toString (  ) 

Tests if the given paramenter is valid. Tests if the given name is valid.

Definition at line 117 of file argument.cpp.

string n2nc::utils::args::Argument::param (  ) 

Returns:
The parameter

Definition at line 159 of file argument.cpp.


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

Generated on Mon Oct 6 19:33:02 2008 for n2nc by  doxygen 1.5.5