casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | Friends
asdm::ProcessorRow Class Reference

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

#include <ProcessorRow.h>

List of all members.

Public Member Functions

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

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

Private Attributes

ProcessorTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
Tag modeId
 ===> Attribute modeId
ProcessorTypeMod::ProcessorType processorType
 ===> Attribute processorType
ProcessorSubTypeMod::ProcessorSubType processorSubType
 ===> Attribute processorSubType
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.64", branch "HEAD"

Generated from model's revision "1.61", branch "HEAD"

Definition at line 98 of file ProcessorRow.h.


Constructor & Destructor Documentation

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:
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.
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:
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
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::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

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.

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.
void asdm::ProcessorRow::fromText ( const std::string &  attributeName,
const std::string &  t 
) [private]

===> Attribute modeId

         

Get modeId.

Returns:
modeId as Tag

===> Attribute modeId

         

Get modeId.

Returns:
modeId as Tag
ProcessorSubTypeMod::ProcessorSubType asdm::ProcessorRow::getProcessorSubType ( ) const

===> Attribute processorSubType

         

Get processorSubType.

Returns:
processorSubType as ProcessorSubTypeMod::ProcessorSubType
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
ProcessorTypeMod::ProcessorType asdm::ProcessorRow::getProcessorType ( ) const

===> Attribute processorType

         

Get processorType.

Returns:
processorType as ProcessorTypeMod::ProcessorType

Return the table to which this row belongs.

Return the table to which this row belongs.

Has this row been added to its table ?

Returns:
true if and only if it has been added.

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::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 string &  s) [private]
void asdm::ProcessorRow::modeIdFromText ( const string &  s) [private]
void asdm::ProcessorRow::processorIdFromText ( const string &  s) [private]
void asdm::ProcessorRow::processorIdFromText ( const string &  s) [private]
void asdm::ProcessorRow::processorSubTypeFromText ( const string &  s) [private]
void asdm::ProcessorRow::processorSubTypeFromText ( const string &  s) [private]
void asdm::ProcessorRow::processorTypeFromText ( const string &  s) [private]
void asdm::ProcessorRow::processorTypeFromText ( const 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::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::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

Set modeId with the specified Tag.

Parameters:
modeIdThe Tag value to which modeId is to be set.

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::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::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::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
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.
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.
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

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

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.

Whether this row has been added to the table or not.

Definition at line 362 of file ProcessorRow.h.

===> 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.

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 files: