shapeworks::Command
Inherited by shapeworks::GroomCommandGroup, shapeworks::ImageCommand, shapeworks::MeshCommand, shapeworks::OptimizeCommandGroup, shapeworks::ParticleSystemCommand, shapeworks::ShapeworksCommand
Public Functions
Name | |
---|---|
virtual const std::string | type() |
const std::string | name() const |
const std::string | usage() const |
const std::string | desc() const |
std::vector< std::string > | parse_args(const std::vector< std::string > & arguments) parses the arguments for this command, saving them in the parser and returning the leftovers |
int | run(SharedCommandData & sharedData) calls execute for this command using the parsed args, returning system exit value |
Protected Functions
Name | |
---|---|
virtual void | buildParser() |
Protected Attributes
Name | |
---|---|
optparse::OptionParser | parser |
Public Functions Documentation
function type
inline virtual const std::string type()
Reimplemented by: shapeworks::ImageCommand::type, shapeworks::MeshCommand::type, shapeworks::OptimizeCommandGroup::type, shapeworks::GroomCommandGroup::type, shapeworks::ParticleSystemCommand::type, shapeworks::ShapeworksCommand::type
function name
inline const std::string name() const
function usage
inline const std::string usage() const
function desc
inline const std::string desc() const
function parse_args
std::vector< std::string > parse_args(
const std::vector< std::string > & arguments
)
parses the arguments for this command, saving them in the parser and returning the leftovers
function run
int run(
SharedCommandData & sharedData
)
calls execute for this command using the parsed args, returning system exit value
Protected Functions Documentation
function buildParser
virtual void buildParser()
Protected Attributes Documentation
variable parser
optparse::OptionParser parser;
Updated on 2022-07-23 at 17:50:03 -0600