class SG_EXPORT osg::ApplicationUsage


Public Methods

[more]static ApplicationUsage* instance()
[more] ApplicationUsage()
[more] ApplicationUsage(const std::string& commandLineUsage)
[more]void setApplicationName(const std::string& name)
[more]const std::string& getApplicationName() const
[more]void setDescription(const std::string& desc)
[more]const std::string& getDescription() const
[more]void addUsageExplanation(Type type, const std::string& option, const std::string& explanation)
[more]void setCommandLineUsage(const std::string& explanation)
[more]const std::string& getCommandLineUsage() const
[more]void addCommandLineOption(const std::string& option, const std::string& explanation)
[more]const UsageMap& getCommandLineOptions() const
[more]void addEnvironmentalVariable(const std::string& option, const std::string& explanation)
[more]const UsageMap& getEnvironmentalVariables() const
[more]void addKeyboardMouseBinding(const std::string& option, const std::string& explanation)
[more]const UsageMap& getKeyboardMouseBindings() const
[more]void getFormatedString(std::string& str, const UsageMap& um, unsigned int widthOfOutput=80)
[more]void write(std::ostream& output, const UsageMap& um, unsigned int widthOfOutput=80)
[more]void write(std::ostream& output, unsigned int type=COMMAND_LINE_OPTION|ENVIRONMENTAL_VARIABLE|KEYBOARD_MOUSE_BINDING, unsigned int widthOfOutput=80)

Public Members

[more]typedef std::map<std::string,std::string> UsageMap
[more]enum Type

Protected Fields

[more]std::string _applicationName
[more]std::string _description
[more]std::string _commandLineUsage
[more]UsageMap _commandLineOptions
[more]UsageMap _environmentalVariables
[more]UsageMap _keyboardMouse


Documentation

ostatic ApplicationUsage* instance()

o ApplicationUsage()

o ApplicationUsage(const std::string& commandLineUsage)

otypedef std::map<std::string,std::string> UsageMap

ovoid setApplicationName(const std::string& name)

oconst std::string& getApplicationName() const

ovoid setDescription(const std::string& desc)

oconst std::string& getDescription() const

oenum Type

o COMMAND_LINE_OPTION

o ENVIRONMENTAL_VARIABLE

o KEYBOARD_MOUSE_BINDING

ovoid addUsageExplanation(Type type, const std::string& option, const std::string& explanation)

ovoid setCommandLineUsage(const std::string& explanation)

oconst std::string& getCommandLineUsage() const

ovoid addCommandLineOption(const std::string& option, const std::string& explanation)

oconst UsageMap& getCommandLineOptions() const

ovoid addEnvironmentalVariable(const std::string& option, const std::string& explanation)

oconst UsageMap& getEnvironmentalVariables() const

ovoid addKeyboardMouseBinding(const std::string& option, const std::string& explanation)

oconst UsageMap& getKeyboardMouseBindings() const

ovoid getFormatedString(std::string& str, const UsageMap& um, unsigned int widthOfOutput=80)

ovoid write(std::ostream& output, const UsageMap& um, unsigned int widthOfOutput=80)

ovoid write(std::ostream& output, unsigned int type=COMMAND_LINE_OPTION|ENVIRONMENTAL_VARIABLE|KEYBOARD_MOUSE_BINDING, unsigned int widthOfOutput=80)

ostd::string _applicationName

ostd::string _description

ostd::string _commandLineUsage

oUsageMap _commandLineOptions

oUsageMap _environmentalVariables

oUsageMap _keyboardMouse


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.