ModuleDescription Class Reference

#include <ModuleDescription.h>

List of all members.

Public Member Functions

void AddParameterGroup (const ModuleParameterGroup &group)
const std::string & GetAcknowledgements () const
const std::string & GetAlternativeLocation () const
const std::string & GetAlternativeTarget () const
const std::string & GetAlternativeType () const
const std::string & GetCategory () const
const std::string & GetContributor () const
const std::string & GetDescription () const
const std::string & GetDocumentationURL () const
const std::string & GetIndex () const
const std::string & GetLicense () const
const std::string & GetLocation () const
const ModuleLogoGetLogo () const
std::string GetParameterDefaultValue (const std::string &name) const
std::vector
< ModuleParameterGroup > & 
GetParameterGroups ()
const std::vector
< ModuleParameterGroup > & 
GetParameterGroups () const
ModuleProcessInformationGetProcessInformation ()
const ModuleProcessInformationGetProcessInformation () const
const std::string & GetTarget () const
const std::string & GetTitle () const
const std::string & GetType () const
 Get the type of the module: Unknown, SharedObjectModule, CommandLineModule.
const std::string & GetVersion () const
bool HasParameter (const std::string &name) const
bool HasReturnParameters () const
 ModuleDescription (const ModuleDescription &md)
 ModuleDescription ()
void operator= (const ModuleDescription &md)
bool ReadParameterFile (const std::string &filename)
void SetAcknowledgements (const std::string &acknowledgements)
void SetAlternativeLocation (const std::string &target)
void SetAlternativeTarget (const std::string &target)
void SetAlternativeType (const std::string &type)
void SetCategory (const std::string &cat)
void SetContributor (const std::string &contributor)
void SetDescription (const std::string &description)
void SetDocumentationURL (const std::string &documentationURL)
void SetIndex (const std::string &ind)
void SetLicense (const std::string &license)
void SetLocation (const std::string &target)
void SetLogo (const ModuleLogo &logo)
bool SetParameterDefaultValue (const std::string &name, const std::string &value)
void SetParameterGroups (const std::vector< ModuleParameterGroup > &groups)
void SetTarget (const std::string &target)
void SetTitle (const std::string &title)
void SetType (const std::string &type)
 Set the type of module: Unknown, SharedObjectModule, CommandLineModule.
void SetVersion (const std::string &version)
bool WriteParameterFile (const std::string &filename, bool withHandlesToBulkParameters=true)

Private Attributes

std::string Acknowledgements
std::string AlternativeLocation
std::string AlternativeTarget
std::string AlternativeType
std::string Category
std::string Contributor
std::string Description
std::string DocumentationURL
std::string Index
std::string License
std::string Location
ModuleLogo Logo
std::vector< ModuleParameterGroupParameterGroups
ModuleProcessInformation ProcessInformation
std::string Target
std::string Title
std::string Type
std::string Version

Constructor & Destructor Documentation

ModuleDescription::ModuleDescription (  ) 
ModuleDescription::ModuleDescription ( const ModuleDescription md  ) 

Member Function Documentation

void ModuleDescription::AddParameterGroup ( const ModuleParameterGroup group  )  [inline]

Referenced by endElement(), and GenerateTCLAP().

const std::string& ModuleDescription::GetAcknowledgements (  )  const [inline]
const std::string& ModuleDescription::GetAlternativeLocation (  )  const [inline]

Get the alternative location for the module. This is path to the file (shared object or executable) for a second version of the module (usually a different type from the primary).

Referenced by operator<<().

const std::string& ModuleDescription::GetAlternativeTarget (  )  const [inline]

Get the alternative target for the module. This is the entry for a shared object module and the full command (with path) for an executable. The alternative target is used for a second version of a module (whose type differs from the primary target, executable verses shared object).

Referenced by operator<<().

const std::string& ModuleDescription::GetAlternativeType (  )  const [inline]

Get the type of an alternative version of the module: Unknown, SharedObjectModule, CommandLineModule. The alternative version is usually a different type than the primary version.

Referenced by operator<<().

const std::string& ModuleDescription::GetCategory (  )  const [inline]
const std::string& ModuleDescription::GetContributor (  )  const [inline]
const std::string& ModuleDescription::GetDescription ( void   )  const [inline]
const std::string& ModuleDescription::GetDocumentationURL (  )  const [inline]
const std::string& ModuleDescription::GetIndex (  )  const [inline]

Referenced by operator<<().

const std::string& ModuleDescription::GetLicense (  )  const [inline]

Referenced by main(), and operator<<().

const std::string& ModuleDescription::GetLocation (  )  const [inline]
const ModuleLogo & ModuleDescription::GetLogo (  )  const
std::string ModuleDescription::GetParameterDefaultValue ( const std::string &  name  )  const
std::vector<ModuleParameterGroup>& ModuleDescription::GetParameterGroups (  )  [inline]
const std::vector<ModuleParameterGroup>& ModuleDescription::GetParameterGroups (  )  const [inline]
ModuleProcessInformation* ModuleDescription::GetProcessInformation (  )  [inline]
const ModuleProcessInformation* ModuleDescription::GetProcessInformation (  )  const [inline]
const std::string& ModuleDescription::GetTarget (  )  const [inline]
const std::string& ModuleDescription::GetTitle (  )  const [inline]
const std::string& ModuleDescription::GetType (  )  const [inline]
const std::string& ModuleDescription::GetVersion (  )  const [inline]
bool ModuleDescription::HasParameter ( const std::string &  name  )  const
bool ModuleDescription::HasReturnParameters (  )  const
void ModuleDescription::operator= ( const ModuleDescription md  ) 
bool ModuleDescription::ReadParameterFile ( const std::string &  filename  ) 

Read a parameter file. Syntax of file is "name: value" for each parameter. Returns a bool indicating whether any parameter value was modified.

References GetParameterDefaultValue(), HasParameter(), slicerget::line, SetParameterDefaultValue(), and trimLeadingAndTrailing().

Referenced by vtkMRMLCommandLineModuleNode::ReadParameterFile().

void ModuleDescription::SetAcknowledgements ( const std::string &  acknowledgements  )  [inline]

Referenced by endElement().

void ModuleDescription::SetAlternativeLocation ( const std::string &  target  )  [inline]

Set the alternative location for the module. This is path to the file (shared object or executable) for a second version of the module (usually a different type from the primary).

void ModuleDescription::SetAlternativeTarget ( const std::string &  target  )  [inline]

Set the alternative target for the module. This is the entry point for a shared object module and the full command (with path) for an executable. The alternative target is used for a second version of a module (whose type differs from the primary target, executable verses shared object).

void ModuleDescription::SetAlternativeType ( const std::string &  type  )  [inline]

Set the type of an alternative version of the module: Unknown, SharedObjectModule, CommandLineModule. The alternative version is usually a different type than the primary version.

void ModuleDescription::SetCategory ( const std::string &  cat  )  [inline]

Referenced by endElement().

void ModuleDescription::SetContributor ( const std::string &  contributor  )  [inline]

Referenced by endElement().

void ModuleDescription::SetDescription ( const std::string &  description  )  [inline]

Referenced by endElement().

void ModuleDescription::SetDocumentationURL ( const std::string &  documentationURL  )  [inline]

Referenced by endElement().

void ModuleDescription::SetIndex ( const std::string &  ind  )  [inline]

Referenced by endElement().

void ModuleDescription::SetLicense ( const std::string &  license  )  [inline]

Referenced by endElement().

void ModuleDescription::SetLocation ( const std::string &  target  )  [inline]
void ModuleDescription::SetLogo ( const ModuleLogo logo  ) 
bool ModuleDescription::SetParameterDefaultValue ( const std::string &  name,
const std::string &  value 
)
void ModuleDescription::SetParameterGroups ( const std::vector< ModuleParameterGroup > &  groups  )  [inline]
void ModuleDescription::SetTarget ( const std::string &  target  )  [inline]
void ModuleDescription::SetTitle ( const std::string &  title  )  [inline]

Referenced by endElement().

void ModuleDescription::SetType ( const std::string &  type  )  [inline]
void ModuleDescription::SetVersion ( const std::string &  version  )  [inline]

Referenced by endElement().

bool ModuleDescription::WriteParameterFile ( const std::string &  filename,
bool  withHandlesToBulkParameters = true 
)

Write a parameter file. By default, the method writes out all the parameters. The "withHandlesToBulkParameters" parameter controls whether the handles to the bulk parameters (image, geometry, etc.) are writte to the file.

References ParameterGroups.


Member Data Documentation

std::string ModuleDescription::Acknowledgements [private]

Referenced by ModuleDescription(), and operator=().

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::AlternativeTarget [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::AlternativeType [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Category [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Contributor [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Description [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::DocumentationURL [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Index [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::License [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Location [private]

Referenced by ModuleDescription(), and operator=().

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Target [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Title [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Type [private]

Referenced by ModuleDescription(), and operator=().

std::string ModuleDescription::Version [private]

Referenced by ModuleDescription(), and operator=().


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

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1