OpenASIP  2.0
Public Types | Public Member Functions | List of all members
PIGCLITextGenerator Class Reference

#include <PIGCLITextGenerator.hh>

Inheritance diagram for PIGCLITextGenerator:
Inheritance graph
Collaboration diagram for PIGCLITextGenerator:
Collaboration graph

Public Types

enum  {
  TXT_CLI_TITLE = Texts::LAST__, TXT_CLI_VERSION, TXT_CLI_USAGE, TXT_GENERATING_BEM,
  TXT_ADF_REQUIRED, TXT_ILLEGAL_ARGS
}
 Ids for the stored texts. More...
 

Public Member Functions

 PIGCLITextGenerator ()
 
virtual ~PIGCLITextGenerator ()
 
- Public Member Functions inherited from Texts::TextGenerator
 TextGenerator ()
 
virtual ~TextGenerator ()
 
virtual boost::format text (int textId)
 
virtual void addText (int textId, const std::string &templateString)
 
virtual void replaceText (int textId, const std::string &newString)
 

Detailed Description

Text generator used for the texts of PIG command line user interface.

Definition at line 41 of file PIGCLITextGenerator.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Ids for the stored texts.

Enumerator
TXT_CLI_TITLE 
TXT_CLI_VERSION 
TXT_CLI_USAGE 
TXT_GENERATING_BEM 
TXT_ADF_REQUIRED 
TXT_ILLEGAL_ARGS 

Definition at line 47 of file PIGCLITextGenerator.hh.

Constructor & Destructor Documentation

◆ PIGCLITextGenerator()

PIGCLITextGenerator::PIGCLITextGenerator ( )

The constructor.

Definition at line 39 of file PIGCLITextGenerator.cc.

39  {
40  addText(
42  "generatebits - OpenASIP TTA " \
43  "Program Image Generator command line interface");
44  addText(TXT_CLI_VERSION, VERSION);
45  addText(TXT_CLI_USAGE, "Usage: generatebits <options> ADF");
46  addText(
48  "BEM file was not given --> Generating default BEM..");
49  addText(TXT_ADF_REQUIRED, "ADF file is required.");
50  addText(TXT_ILLEGAL_ARGS, "Illegal command line arguments.");
51 }

References Texts::TextGenerator::addText(), TXT_ADF_REQUIRED, TXT_CLI_TITLE, TXT_CLI_USAGE, TXT_CLI_VERSION, TXT_GENERATING_BEM, and TXT_ILLEGAL_ARGS.

Here is the call graph for this function:

◆ ~PIGCLITextGenerator()

PIGCLITextGenerator::~PIGCLITextGenerator ( )
virtual

The destructor.

Definition at line 57 of file PIGCLITextGenerator.cc.

57  {
58 }

The documentation for this class was generated from the following files:
PIGCLITextGenerator::TXT_CLI_TITLE
@ TXT_CLI_TITLE
Definition: PIGCLITextGenerator.hh:48
PIGCLITextGenerator::TXT_ADF_REQUIRED
@ TXT_ADF_REQUIRED
Definition: PIGCLITextGenerator.hh:52
Texts::TextGenerator::addText
virtual void addText(int textId, const std::string &templateString)
Definition: TextGenerator.cc:118
PIGCLITextGenerator::TXT_CLI_USAGE
@ TXT_CLI_USAGE
Definition: PIGCLITextGenerator.hh:50
PIGCLITextGenerator::TXT_GENERATING_BEM
@ TXT_GENERATING_BEM
Definition: PIGCLITextGenerator.hh:51
PIGCLITextGenerator::TXT_ILLEGAL_ARGS
@ TXT_ILLEGAL_ARGS
Definition: PIGCLITextGenerator.hh:53
PIGCLITextGenerator::TXT_CLI_VERSION
@ TXT_CLI_VERSION
Definition: PIGCLITextGenerator.hh:49
Texts::LAST__
@ LAST__
Definition: TextGenerator.hh:68