armarx::ApplicationOptions Namespace Reference

This namespace contains all relevent methods to parse and print options and propertiesas used by the armarx::Application. More...

Classes

struct  Options
 Stucture containing the parsed options of the application. More...
 

Enumerations

enum  OptionsFormat {
  eHelpBrief, eOptionsDetailed, eDoxygen, eDoxygenComponentPages,
  eConfig, eXml
}
 Help format to display. More...
 

Functions

PropertyUserList getPropertyUsers (ArmarXDummyManagerPtr dummyManager)
 Return the list of property users. More...
 
Ice::PropertiesPtr mergeProperties (Ice::PropertiesPtr properties, int argc, char *argv[])
 Merge command line options into properties. More...
 
Options parseHelpOptions (Ice::PropertiesPtr properties, int argc, char *argv[])
 Parse the help options. More...
 
void showHelp (ApplicationPtr application, ArmarXDummyManagerPtr dummyManager, Options options, Ice::PropertiesPtr properties, std::ostream &out=std::cout)
 Prints help according to the format selection in options. More...
 

Detailed Description

This namespace contains all relevent methods to parse and print options and propertiesas used by the armarx::Application.

Function Documentation

◆ getPropertyUsers()

PropertyUserList getPropertyUsers ( ArmarXDummyManagerPtr  dummyManager)

Return the list of property users.

In this case all components are property users stored in the ComponentManager.

Returns
PropertyUser List

Definition at line 265 of file ApplicationOptions.cpp.

+ Here is the caller graph for this function:

◆ mergeProperties()

Ice::PropertiesPtr mergeProperties ( Ice::PropertiesPtr  properties,
int  argc,
char *  argv[] 
)

Merge command line options into properties.

Command line options override already set properties.

Parameters
propertiesinitialized properties object (see Ice::createProperties())
argcnumber of command line arguments
argvcommand line arguments
Returns
merged properties

Definition at line 59 of file ApplicationOptions.cpp.

+ Here is the caller graph for this function:

◆ parseHelpOptions()

ApplicationOptions::Options parseHelpOptions ( Ice::PropertiesPtr  properties,
int  argc,
char *  argv[] 
)

Parse the help options.

Parameters
propertiesproperties object from Application
argcnumber of command line arguments
argvcommand line arguments
Returns
the parsed options structure

Definition at line 68 of file ApplicationOptions.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ showHelp()

void showHelp ( ApplicationPtr  application,
ArmarXDummyManagerPtr  dummyManager,
ApplicationOptions::Options  options,
Ice::PropertiesPtr  properties,
std::ostream &  out = std::cout 
)

Prints help according to the format selection in options.

Parameters
applicationpointer to application in order to display application properties
dummyManagerpointer to dummyManager in order to display properties of add ManagedIceObjects
optionsthe parsed help options
outoptional output stream (default: std::cout)

Definition at line 169 of file ApplicationOptions.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function: