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

#include <MachineTestReportTextGenerator.hh>

Inheritance diagram for MachineTestReportTextGenerator:
Inheritance graph
Collaboration diagram for MachineTestReportTextGenerator:
Collaboration graph

Public Types

enum  {
  TXT_SOCKET_SEGMENT_CONN_EXISTS = Texts::LAST__, TXT_SOCKET_SEGMENT_CONN_ILLEGAL_REG, TXT_SOCKET_SEGMENT_CONN_BOTH_DIRS_ARE_ILLEGAL, TXT_SOCKET_PORT_CONN_ILLEGAL_REG,
  TXT_SOCKET_PORT_CONN_EXISTS, TXT_SOCKET_PORT_CONN_RF_PORT_CONN_EXISTS, TXT_SOCKET_PORT_CONN_WRONG_SOCKET_DIR, TXT_SOCKET_PORT_CONN_MAX_CONN,
  TXT_BRIDGE_ILLEGAL_REG, TXT_BRIDGE_LOOP, TXT_BRIDGE_EXISTS, TXT_BRIDGE_BRANCHED_BUS,
  TXT_SOCKET_DIR_UNKNOWN, TXT_SOCKET_NO_CONN, TXT_SOCKET_SAME_DIR_CONN, TXT_SOCKET_FORBIDDEN_DIR
}
 Ids for the generated texts. More...
 

Public Member Functions

 MachineTestReportTextGenerator ()
 
virtual ~MachineTestReportTextGenerator ()
 
- 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)
 

Private Member Functions

 MachineTestReportTextGenerator (const MachineTestReportTextGenerator &)
 
MachineTestReportTextGeneratoroperator= (const MachineTestReportTextGenerator &)
 

Detailed Description

Text generator used to store texts returned by MachineTestReporter.

Definition at line 40 of file MachineTestReportTextGenerator.hh.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

Ids for the generated texts.

Enumerator
TXT_SOCKET_SEGMENT_CONN_EXISTS 
TXT_SOCKET_SEGMENT_CONN_ILLEGAL_REG 
TXT_SOCKET_SEGMENT_CONN_BOTH_DIRS_ARE_ILLEGAL 
TXT_SOCKET_PORT_CONN_ILLEGAL_REG 
TXT_SOCKET_PORT_CONN_EXISTS 
TXT_SOCKET_PORT_CONN_RF_PORT_CONN_EXISTS 
TXT_SOCKET_PORT_CONN_WRONG_SOCKET_DIR 
TXT_SOCKET_PORT_CONN_MAX_CONN 
TXT_BRIDGE_ILLEGAL_REG 
TXT_BRIDGE_LOOP 
TXT_BRIDGE_EXISTS 
TXT_BRIDGE_BRANCHED_BUS 
TXT_SOCKET_DIR_UNKNOWN 
TXT_SOCKET_NO_CONN 
TXT_SOCKET_SAME_DIR_CONN 
TXT_SOCKET_FORBIDDEN_DIR 

Definition at line 46 of file MachineTestReportTextGenerator.hh.

Constructor & Destructor Documentation

◆ MachineTestReportTextGenerator() [1/2]

MachineTestReportTextGenerator::MachineTestReportTextGenerator ( )

Constructor.

Definition at line 38 of file MachineTestReportTextGenerator.cc.

38  {
40  "Connection of socket '%1%' and segment '%2%' of bus "
41  "'%3%' already exists.");
43  "Socket '%1%' and bus '%2%' are not registered to the same "
44  "machine.");
46  "Direction of socket '%1%' can be neither input nor output "
47  "because connection to port is '%2%' of unit '%3%' is illegal "
48  "if the direction is input and connection to port '%4%' of unit "
49  "'%5%' is illegal in the case that direction is output.");
51  "Socket '%1%' and unit '%2%' are not registrered to the same "
52  "machine.");
54  "Connection of socket '%1%' and port '%2%' of unit '%3%' "
55  "already exists.");
57  "Connection of socket '%1%' and port '%2%' of register file "
58  "'%3%' is illegal because two ports of a register file cannot "
59  "be connected to the same socket.");
61  "Connection of socket '%1%' and port '%2%' of unit '%3%' is "
62  "illegal because of the direction of the socket.");
64  "Connection of socket '%1%' and port '%2%' of unit '%3%' is "
65  "illegal because the port has maximum number of connections.");
67  "Buses '%1%' and '%2%' are not registered to the same machine.");
69  "Bridging buses '%1%' and '%2%' would create a loop into the "
70  "bus chain.");
72  "There is already a bridge between buses '%1%' and '%2%'.");
74  "Cannot bridge buses '%1%' and '%2%' because bus '%3%' would be "
75  "branched.");
77  "Direction of socket '%1%' can never be set to UNKNOWN.");
79  "Direction of socket '%1%' cannot be set because it has no "
80  "segments connected.");
82  "Direction of socket '%1%' cannot be '%2%' because it is "
83  "connected to port '%3%' of unit '%4%' which is already "
84  "connected to another socket of the same direction.");
86  "Direction of socket '%1%' cannot be '%2%' because it is "
87  "connected to port '%3%' of unit '%4%' which doesn't allow "
88  "sockets of that direction to be connected.");
89 }

References Texts::TextGenerator::addText(), TXT_BRIDGE_BRANCHED_BUS, TXT_BRIDGE_EXISTS, TXT_BRIDGE_ILLEGAL_REG, TXT_BRIDGE_LOOP, TXT_SOCKET_DIR_UNKNOWN, TXT_SOCKET_FORBIDDEN_DIR, TXT_SOCKET_NO_CONN, TXT_SOCKET_PORT_CONN_EXISTS, TXT_SOCKET_PORT_CONN_ILLEGAL_REG, TXT_SOCKET_PORT_CONN_MAX_CONN, TXT_SOCKET_PORT_CONN_RF_PORT_CONN_EXISTS, TXT_SOCKET_PORT_CONN_WRONG_SOCKET_DIR, TXT_SOCKET_SAME_DIR_CONN, TXT_SOCKET_SEGMENT_CONN_BOTH_DIRS_ARE_ILLEGAL, TXT_SOCKET_SEGMENT_CONN_EXISTS, and TXT_SOCKET_SEGMENT_CONN_ILLEGAL_REG.

Here is the call graph for this function:

◆ ~MachineTestReportTextGenerator()

MachineTestReportTextGenerator::~MachineTestReportTextGenerator ( )
virtual

Destructor.

Definition at line 95 of file MachineTestReportTextGenerator.cc.

95  {
96 }

◆ MachineTestReportTextGenerator() [2/2]

MachineTestReportTextGenerator::MachineTestReportTextGenerator ( const MachineTestReportTextGenerator )
private

Member Function Documentation

◆ operator=()

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

The documentation for this class was generated from the following files:
MachineTestReportTextGenerator::TXT_SOCKET_SEGMENT_CONN_EXISTS
@ TXT_SOCKET_SEGMENT_CONN_EXISTS
Definition: MachineTestReportTextGenerator.hh:47
MachineTestReportTextGenerator::TXT_SOCKET_SEGMENT_CONN_BOTH_DIRS_ARE_ILLEGAL
@ TXT_SOCKET_SEGMENT_CONN_BOTH_DIRS_ARE_ILLEGAL
Definition: MachineTestReportTextGenerator.hh:49
MachineTestReportTextGenerator::TXT_BRIDGE_EXISTS
@ TXT_BRIDGE_EXISTS
Definition: MachineTestReportTextGenerator.hh:57
MachineTestReportTextGenerator::TXT_SOCKET_SAME_DIR_CONN
@ TXT_SOCKET_SAME_DIR_CONN
Definition: MachineTestReportTextGenerator.hh:61
Texts::TextGenerator::addText
virtual void addText(int textId, const std::string &templateString)
Definition: TextGenerator.cc:118
MachineTestReportTextGenerator::TXT_BRIDGE_BRANCHED_BUS
@ TXT_BRIDGE_BRANCHED_BUS
Definition: MachineTestReportTextGenerator.hh:58
MachineTestReportTextGenerator::TXT_SOCKET_FORBIDDEN_DIR
@ TXT_SOCKET_FORBIDDEN_DIR
Definition: MachineTestReportTextGenerator.hh:62
MachineTestReportTextGenerator::TXT_SOCKET_PORT_CONN_RF_PORT_CONN_EXISTS
@ TXT_SOCKET_PORT_CONN_RF_PORT_CONN_EXISTS
Definition: MachineTestReportTextGenerator.hh:52
MachineTestReportTextGenerator::TXT_BRIDGE_ILLEGAL_REG
@ TXT_BRIDGE_ILLEGAL_REG
Definition: MachineTestReportTextGenerator.hh:55
MachineTestReportTextGenerator::TXT_SOCKET_PORT_CONN_MAX_CONN
@ TXT_SOCKET_PORT_CONN_MAX_CONN
Definition: MachineTestReportTextGenerator.hh:54
MachineTestReportTextGenerator::TXT_SOCKET_PORT_CONN_EXISTS
@ TXT_SOCKET_PORT_CONN_EXISTS
Definition: MachineTestReportTextGenerator.hh:51
MachineTestReportTextGenerator::TXT_SOCKET_PORT_CONN_ILLEGAL_REG
@ TXT_SOCKET_PORT_CONN_ILLEGAL_REG
Definition: MachineTestReportTextGenerator.hh:50
MachineTestReportTextGenerator::TXT_BRIDGE_LOOP
@ TXT_BRIDGE_LOOP
Definition: MachineTestReportTextGenerator.hh:56
MachineTestReportTextGenerator::TXT_SOCKET_SEGMENT_CONN_ILLEGAL_REG
@ TXT_SOCKET_SEGMENT_CONN_ILLEGAL_REG
Definition: MachineTestReportTextGenerator.hh:48
MachineTestReportTextGenerator::TXT_SOCKET_NO_CONN
@ TXT_SOCKET_NO_CONN
Definition: MachineTestReportTextGenerator.hh:60
MachineTestReportTextGenerator::TXT_SOCKET_PORT_CONN_WRONG_SOCKET_DIR
@ TXT_SOCKET_PORT_CONN_WRONG_SOCKET_DIR
Definition: MachineTestReportTextGenerator.hh:53
MachineTestReportTextGenerator::TXT_SOCKET_DIR_UNKNOWN
@ TXT_SOCKET_DIR_UNKNOWN
Definition: MachineTestReportTextGenerator.hh:59
Texts::LAST__
@ LAST__
Definition: TextGenerator.hh:68