The ProcessorRow class is a row of a ProcessorTable.
More...
#include <ProcessorRow.h>
The ProcessorRow class is a row of a ProcessorTable.
Generated from model's revision "-1", branch ""
Definition at line 98 of file ProcessorRow.h.
virtual asdm::ProcessorRow::~ProcessorRow |
( |
| ) |
|
|
virtual |
friend class asdm::TableStreamReader<ProcessorTable, ProcessorRow>;
Create a ProcessorRow.
This constructor is private because only the table can create rows. All rows know the table to which they belong.
- Parameters
-
table | The table to which this row belongs. |
Create a ProcessorRow using a copy constructor mechanism.
Given a ProcessorRow row and a ProcessorTable table, the method creates a new ProcessorRow owned by table. Each attribute of the created row is a copy (deep) of the corresponding attribute of row. The method does not add the created row to its table, its simply parents it to table, a call to the add method has to be done in order to get the row added (very likely after having modified some of its attributes). If row is null then the method returns a row with default values for its attributes.
This constructor is private because only the table can create rows. All rows know the table to which they belong.
- Parameters
-
table | The table to which this row belongs. |
row | The row which is to be copied. |
Extrinsic Table Attributes Links* bool asdm::ProcessorRow::compareNoAutoInc |
( |
Tag |
modeId, |
|
|
ProcessorTypeMod::ProcessorType |
processorType, |
|
|
ProcessorSubTypeMod::ProcessorSubType |
processorSubType |
|
) |
| |
Compare each mandatory attribute except the autoincrementable one of this ProcessorRow with the corresponding parameters and return true if there is a match and false otherwise.
- Parameters
-
modeId | |
processorType | |
processorSubType | |
bool asdm::ProcessorRow::compareRequiredValue |
( |
Tag |
modeId, |
|
|
ProcessorTypeMod::ProcessorType |
processorType, |
|
|
ProcessorSubTypeMod::ProcessorSubType |
processorSubType |
|
) |
| |
Compare each mandatory value (i.e.
not in the key) attribute with the corresponding parameters and return true if there is a match and false otherwise.
- Parameters
-
modeId | |
processorType | |
processorSubType | |
bool asdm::ProcessorRow::equalByRequiredValue |
( |
ProcessorRow * |
x | ) |
|
Return true if all required attributes of the value part are equal to their homologues in x and false otherwise.
- Parameters
-
x | a pointer on the ProcessorRow whose required attributes of the value part will be compared with those of this. |
- Returns
- a boolean.
Tag asdm::ProcessorRow::getModeId |
( |
| ) |
const |
===> Attribute modeId
Get modeId.
- Returns
- modeId as Tag
ProcessorSubTypeMod::ProcessorSubType asdm::ProcessorRow::getProcessorSubType |
( |
| ) |
const |
===> Attribute processorSubType
Get processorSubType.
- Returns
- processorSubType as ProcessorSubTypeMod::ProcessorSubType
ProcessorTypeMod::ProcessorType asdm::ProcessorRow::getProcessorType |
( |
| ) |
const |
===> Attribute processorType
Get processorType.
- Returns
- processorType as ProcessorTypeMod::ProcessorType
Return the table to which this row belongs.
bool asdm::ProcessorRow::isAdded |
( |
| ) |
const |
Has this row been added to its table ?
- Returns
- true if and only if it has been added.
void asdm::ProcessorRow::isAdded |
( |
bool |
added | ) |
|
|
private |
This method is used by the Table class when this row is added to the table.
void asdm::ProcessorRow::modeIdFromText |
( |
const std::string & |
s | ) |
|
|
private |
void asdm::ProcessorRow::processorIdFromBin |
( |
EndianIStream & |
eis | ) |
|
|
private |
void asdm::ProcessorRow::processorIdFromText |
( |
const std::string & |
s | ) |
|
|
private |
void asdm::ProcessorRow::processorSubTypeFromBin |
( |
EndianIStream & |
eis | ) |
|
|
private |
void asdm::ProcessorRow::processorSubTypeFromText |
( |
const std::string & |
s | ) |
|
|
private |
void asdm::ProcessorRow::processorTypeFromBin |
( |
EndianIStream & |
eis | ) |
|
|
private |
void asdm::ProcessorRow::processorTypeFromText |
( |
const std::string & |
s | ) |
|
|
private |
void asdm::ProcessorRow::setFromIDL |
( |
asdmIDL::ProcessorRowIDL |
x | ) |
|
Fill the values of this row from the IDL struct ProcessorRowIDL.
- Parameters
-
x | The IDL struct containing the values used to fill this row. |
- Exceptions
-
void asdm::ProcessorRow::setFromXML |
( |
std::string |
rowDoc | ) |
|
Fill the values of this row from an XML string that was produced by the toXML() method.
- Parameters
-
rowDoc | the XML string being used to set the values of this row. |
- Exceptions
-
void asdm::ProcessorRow::setModeId |
( |
Tag |
modeId | ) |
|
Set modeId with the specified Tag.
- Parameters
-
modeId | The Tag value to which modeId is to be set. |
void asdm::ProcessorRow::setProcessorId |
( |
Tag |
processorId | ) |
|
|
private |
Set processorId with the specified Tag value.
- Parameters
-
processorId | The Tag value to which processorId is to be set. |
- Exceptions
-
void asdm::ProcessorRow::setProcessorSubType |
( |
ProcessorSubTypeMod::ProcessorSubType |
processorSubType | ) |
|
Set processorSubType with the specified ProcessorSubTypeMod::ProcessorSubType.
- Parameters
-
processorSubType | The ProcessorSubTypeMod::ProcessorSubType value to which processorSubType is to be set. |
void asdm::ProcessorRow::setProcessorType |
( |
ProcessorTypeMod::ProcessorType |
processorType | ) |
|
Set processorType with the specified ProcessorTypeMod::ProcessorType.
- Parameters
-
processorType | The ProcessorTypeMod::ProcessorType value to which processorType is to be set. |
Serialize this into a stream of bytes written to an EndianOSStream.
- Parameters
-
asdmIDL::ProcessorRowIDL* asdm::ProcessorRow::toIDL |
( |
| ) |
const |
Return this row in the form of an IDL struct.
- Returns
- The values of this row as a ProcessorRowIDL struct.
void asdm::ProcessorRow::toIDL |
( |
asdmIDL::ProcessorRowIDL & |
x | ) |
const |
Define the content of a ProcessorRowIDL struct from the values found in this row.
- Parameters
-
x | a reference to the ProcessorRowIDL struct to be set. |
std::string asdm::ProcessorRow::toXML |
( |
| ) |
const |
Return this row in the form of an XML string.
- Returns
- The values of this row as an XML string.
Intrinsic Table asdm::ProcessorRow::Attributes |
bool asdm::ProcessorRow::hasBeenAdded |
|
private |
Whether this row has been added to the table or not.
Definition at line 362 of file ProcessorRow.h.
Tag asdm::ProcessorRow::modeId |
|
private |
ProcessorSubTypeMod::ProcessorSubType asdm::ProcessorRow::processorSubType |
|
private |
ProcessorTypeMod::ProcessorType asdm::ProcessorRow::processorType |
|
private |
The documentation for this class was generated from the following file: