casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends | List of all members
asdm::ProcessorRow Class Reference

The ProcessorRow class is a row of a ProcessorTable. More...

#include <ProcessorRow.h>

Public Member Functions

virtual ~ProcessorRow ()
 friend class asdm::TableStreamReader<ProcessorTable, ProcessorRow>; More...
 
ProcessorTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? More...
 
Tag getModeId () const
 ===> Attribute modeId More...
 
void setModeId (Tag modeId)
 Set modeId with the specified Tag. More...
 
ProcessorTypeMod::ProcessorType getProcessorType () const
 ===> Attribute processorType More...
 
void setProcessorType (ProcessorTypeMod::ProcessorType processorType)
 Set processorType with the specified ProcessorTypeMod::ProcessorType. More...
 
ProcessorSubTypeMod::ProcessorSubType getProcessorSubType () const
 ===> Attribute processorSubType More...
 
void setProcessorSubType (ProcessorSubTypeMod::ProcessorSubType processorSubType)
 Set processorSubType with the specified ProcessorSubTypeMod::ProcessorSubType. More...
 
Extrinsic Table Attributes
Links *bool 
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. More...
 
bool compareRequiredValue (Tag modeId, ProcessorTypeMod::ProcessorType processorType, ProcessorSubTypeMod::ProcessorSubType processorSubType)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (ProcessorRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::ProcessorRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::ProcessorRowIDL &x) const
 Define the content of a ProcessorRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::ProcessorRowIDL x)
 Fill the values of this row from the IDL struct ProcessorRowIDL. More...
 
std::string toXML () const
 Return this row in the form of an XML string. More...
 
void setFromXML (std::string rowDoc)
 Fill the values of this row from an XML string that was produced by the toXML() method. More...
 

Public Attributes

Intrinsic Table Attributes
 

Private Member Functions

void isAdded (bool added)
 This method is used by the Table class when this row is added to the table. More...
 
 ProcessorRow (ProcessorTable &table)
 Create a ProcessorRow. More...
 
 ProcessorRow (ProcessorTable &table, ProcessorRow *row)
 Create a ProcessorRow using a copy constructor mechanism. More...
 
void setProcessorId (Tag processorId)
 Set processorId with the specified Tag value. More...
 
void processorIdFromBin (EndianIStream &eis)
 
void modeIdFromBin (EndianIStream &eis)
 
void processorTypeFromBin (EndianIStream &eis)
 
void processorSubTypeFromBin (EndianIStream &eis)
 
void processorIdFromText (const std::string &s)
 
void modeIdFromText (const std::string &s)
 
void processorTypeFromText (const std::string &s)
 
void processorSubTypeFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

ProcessorTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
Tag modeId
 ===> Attribute modeId More...
 
ProcessorTypeMod::ProcessorType processorType
 ===> Attribute processorType More...
 
ProcessorSubTypeMod::ProcessorSubType processorSubType
 ===> Attribute processorSubType More...
 
Extrinsic Table Attributes
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
ProcessorAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
ProcessorAttributeFromText
fromTextMethods
 

Friends

class asdm::ProcessorTable
 
class asdm::RowTransformer< ProcessorRow >
 

Detailed Description

The ProcessorRow class is a row of a ProcessorTable.

Generated from model's revision "-1", branch ""

Definition at line 98 of file ProcessorRow.h.

Constructor & Destructor Documentation

virtual asdm::ProcessorRow::~ProcessorRow ( )
virtual

friend class asdm::TableStreamReader<ProcessorTable, ProcessorRow>;

asdm::ProcessorRow::ProcessorRow ( ProcessorTable table)
private

Create a ProcessorRow.

This constructor is private because only the table can create rows. All rows know the table to which they belong.

Parameters
tableThe table to which this row belongs.
asdm::ProcessorRow::ProcessorRow ( ProcessorTable table,
ProcessorRow row 
)
private

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
tableThe table to which this row belongs.
rowThe row which is to be copied.

Member Function Documentation

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
xa 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
ProcessorTable& asdm::ProcessorRow::getTable ( ) const

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::modeIdFromBin ( EndianIStream eis)
private
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
xThe IDL struct containing the values used to fill this row.
Exceptions
ConversionException
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
rowDocthe XML string being used to set the values of this row.
Exceptions
ConversionException
void asdm::ProcessorRow::setModeId ( Tag  modeId)

Set modeId with the specified Tag.

Parameters
modeIdThe Tag value to which modeId is to be set.
void asdm::ProcessorRow::setProcessorId ( Tag  processorId)
private

Set processorId with the specified Tag value.

Parameters
processorIdThe Tag value to which processorId is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::ProcessorRow::setProcessorSubType ( ProcessorSubTypeMod::ProcessorSubType  processorSubType)

Set processorSubType with the specified ProcessorSubTypeMod::ProcessorSubType.

Parameters
processorSubTypeThe 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
processorTypeThe ProcessorTypeMod::ProcessorType value to which processorType is to be set.
void asdm::ProcessorRow::toBin ( EndianOSStream eoss)
private

Serialize this into a stream of bytes written to an EndianOSStream.

Parameters
eossthe EndianOSStream to be written to
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
xa 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.

Friends And Related Function Documentation

friend class asdm::ProcessorTable
friend

Definition at line 99 of file ProcessorRow.h.

friend class asdm::RowTransformer< ProcessorRow >
friend

Definition at line 100 of file ProcessorRow.h.

Member Data Documentation

Intrinsic Table asdm::ProcessorRow::Attributes

Definition at line 123 of file ProcessorRow.h.

Extrinsic Table Attributes Links* binary deserialization material from an EndianIStream std::map<std::string, ProcessorAttributeFromBin> asdm::ProcessorRow::fromBinMethods
private

Definition at line 470 of file ProcessorRow.h.

* text deserialization material std::map<std::string, ProcessorAttributeFromText> asdm::ProcessorRow::fromTextMethods
private

Definition at line 482 of file ProcessorRow.h.

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

===> Attribute modeId

Definition at line 429 of file ProcessorRow.h.

ProcessorSubTypeMod::ProcessorSubType asdm::ProcessorRow::processorSubType
private

===> Attribute processorSubType

Definition at line 451 of file ProcessorRow.h.

ProcessorTypeMod::ProcessorType asdm::ProcessorRow::processorType
private

===> Attribute processorType

Definition at line 440 of file ProcessorRow.h.

ProcessorTable& asdm::ProcessorRow::table
private

The table to which this row belongs.

Definition at line 358 of file ProcessorRow.h.


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