OpenASIP  2.0
Public Member Functions | Private Member Functions | List of all members
CreateHDBCmdLineOptions Class Reference

#include <CreateHDBCmdLineOptions.hh>

Inheritance diagram for CreateHDBCmdLineOptions:
Inheritance graph
Collaboration diagram for CreateHDBCmdLineOptions:
Collaboration graph

Public Member Functions

 CreateHDBCmdLineOptions ()
 
virtual ~CreateHDBCmdLineOptions ()
 
virtual void printVersion () const
 
virtual void printHelp () const
 
- Public Member Functions inherited from CmdLineOptions
 CmdLineOptions (std::string description, std::string version="")
 
virtual ~CmdLineOptions ()
 
void parse (char *argv[], int argc)
 
void parse (std::string argv[], int argc)
 
void parse (std::vector< std::string > argv)
 
virtual bool isVerboseSwitchDefined () const
 
virtual bool isVerboseSpamSwitchDefined () const
 
- Public Member Functions inherited from CmdLineParser
 CmdLineParser (std::string description)
 
virtual ~CmdLineParser ()
 
virtual void storeOptions (Options &options)
 
virtual int numberOfArguments () const
 
virtual std::string argument (int index) const
 

Private Member Functions

 CreateHDBCmdLineOptions (const CreateHDBCmdLineOptions &)
 Copying not allowed. More...
 
CreateHDBCmdLineOptionsoperator= (const CreateHDBCmdLineOptions &)
 Assignment not allowed. More...
 

Additional Inherited Members

- Protected Member Functions inherited from CmdLineOptions
bool optionGiven (std::string key) const
 
- Protected Member Functions inherited from CmdLineParser
void addOption (CmdLineOptionParser *opt)
 
CmdLineOptionParserfindOption (std::string name) const
 
bool parseOption (std::string option, std::string &name, std::string &arguments, std::string &prefix, bool &hasArgument) const
 
bool readPrefix (std::string &option, std::string &prefix, bool &longOption) const
 
bool isPrefix (std::string name) const
 
- Protected Attributes inherited from CmdLineParser
std::map< std::string, CmdLineOptionParser * > optionLongNames_
 Database for holding options with their long names as a key. More...
 
std::map< std::string, CmdLineOptionParser * > optionShortNames_
 Database for holding options with their short names as a key. More...
 
std::vector< std::string > commandLine_
 Command line is stored here. More...
 
std::vector< std::string > arguments_
 Command line arguments are stored here. More...
 
std::vector< std::string > prefixes_
 Legal prefixes are stored here. More...
 

Detailed Description

Command line option class for createhdb.

Definition at line 43 of file CreateHDBCmdLineOptions.hh.

Constructor & Destructor Documentation

◆ CreateHDBCmdLineOptions() [1/2]

CreateHDBCmdLineOptions::CreateHDBCmdLineOptions ( )

Constructor.

Definition at line 42 of file CreateHDBCmdLineOptions.cc.

42  : CmdLineOptions("") {
43 
44 }

◆ ~CreateHDBCmdLineOptions()

CreateHDBCmdLineOptions::~CreateHDBCmdLineOptions ( )
virtual

Destructor.

Definition at line 49 of file CreateHDBCmdLineOptions.cc.

49  {
50 }

◆ CreateHDBCmdLineOptions() [2/2]

CreateHDBCmdLineOptions::CreateHDBCmdLineOptions ( const CreateHDBCmdLineOptions )
private

Copying not allowed.

Member Function Documentation

◆ operator=()

CreateHDBCmdLineOptions& CreateHDBCmdLineOptions::operator= ( const CreateHDBCmdLineOptions )
private

Assignment not allowed.

◆ printHelp()

void CreateHDBCmdLineOptions::printHelp ( ) const
virtual

Prints the help menu of the program.

Reimplemented from CmdLineOptions.

Definition at line 65 of file CreateHDBCmdLineOptions.cc.

65  {
66  printVersion();
67  std::cout << std::endl
68  << "usage: createhdb [target file] "
69  << std::endl
70  << std::endl
71  << "The target file is mandatory."
72  << std::endl;
74 }

References CmdLineOptions::printHelp(), and printVersion().

Here is the call graph for this function:

◆ printVersion()

void CreateHDBCmdLineOptions::printVersion ( ) const
virtual

Prints the version of the program.

Implements CmdLineOptions.

Definition at line 56 of file CreateHDBCmdLineOptions.cc.

56  {
57  std::cout << "CreateHDB - OpenASIP Hardware Database (HDB) initializer "
58  << Application::TCEVersionString() << std::endl;
59 }

References Application::TCEVersionString().

Referenced by printHelp().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
CreateHDBCmdLineOptions::printVersion
virtual void printVersion() const
Definition: CreateHDBCmdLineOptions.cc:56
CmdLineOptions::CmdLineOptions
CmdLineOptions(std::string description, std::string version="")
Definition: CmdLineOptions.cc:73
CmdLineOptions::printHelp
virtual void printHelp() const
Definition: CmdLineOptions.cc:262
Application::TCEVersionString
static std::string TCEVersionString()
Definition: Application.cc:510