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::FlagCmdRow Class Reference

The FlagCmdRow class is a row of a FlagCmdTable. More...

#include <FlagCmdRow.h>

Public Member Functions

virtual ~FlagCmdRow ()
 friend class asdm::TableStreamReader<FlagCmdTable, FlagCmdRow>; More...
 
FlagCmdTablegetTable () const
 Return the table to which this row belongs. More...
 
bool isAdded () const
 Has this row been added to its table ? More...
 
void setTimeInterval (ArrayTimeInterval timeInterval)
 Set timeInterval with the specified ArrayTimeInterval. More...
 
std::string getType () const
 ===> Attribute type More...
 
void setType (std::string type)
 Set type with the specified std::string. More...
 
std::string getReason () const
 ===> Attribute reason More...
 
void setReason (std::string reason)
 Set reason with the specified std::string. More...
 
int getLevel () const
 ===> Attribute level More...
 
void setLevel (int level)
 Set level with the specified int. More...
 
int getSeverity () const
 ===> Attribute severity More...
 
void setSeverity (int severity)
 Set severity with the specified int. More...
 
bool getApplied () const
 ===> Attribute applied More...
 
void setApplied (bool applied)
 Set applied with the specified bool. More...
 
std::string getCommand () const
 ===> Attribute command More...
 
void setCommand (std::string command)
 Set command with the specified std::string. More...
 
Extrinsic Table Attributes
Links *bool 
compareNoAutoInc (ArrayTimeInterval timeInterval, std::string type, std::string reason, int level, int severity, bool applied, std::string command)
 Compare each mandatory attribute except the autoincrementable one of this FlagCmdRow with the corresponding parameters and return true if there is a match and false otherwise. More...
 
bool compareRequiredValue (std::string type, std::string reason, int level, int severity, bool applied, std::string command)
 Compare each mandatory value (i.e. More...
 
bool equalByRequiredValue (FlagCmdRow *x)
 Return true if all required attributes of the value part are equal to their homologues in x and false otherwise. More...
 
asdmIDL::FlagCmdRowIDL * toIDL () const
 Return this row in the form of an IDL struct. More...
 
void toIDL (asdmIDL::FlagCmdRowIDL &x) const
 Define the content of a FlagCmdRowIDL struct from the values found in this row. More...
 
void setFromIDL (asdmIDL::FlagCmdRowIDL x)
 Fill the values of this row from the IDL struct FlagCmdRowIDL. 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...
 
 FlagCmdRow (FlagCmdTable &table)
 Create a FlagCmdRow. More...
 
 FlagCmdRow (FlagCmdTable &table, FlagCmdRow *row)
 Create a FlagCmdRow using a copy constructor mechanism. More...
 
void timeIntervalFromBin (EndianIStream &eis)
 
void typeFromBin (EndianIStream &eis)
 
void reasonFromBin (EndianIStream &eis)
 
void levelFromBin (EndianIStream &eis)
 
void severityFromBin (EndianIStream &eis)
 
void appliedFromBin (EndianIStream &eis)
 
void commandFromBin (EndianIStream &eis)
 
void timeIntervalFromText (const std::string &s)
 
void typeFromText (const std::string &s)
 
void reasonFromText (const std::string &s)
 
void levelFromText (const std::string &s)
 
void severityFromText (const std::string &s)
 
void appliedFromText (const std::string &s)
 
void commandFromText (const std::string &s)
 
void toBin (EndianOSStream &eoss)
 Serialize this into a stream of bytes written to an EndianOSStream. More...
 

Private Attributes

FlagCmdTabletable
 The table to which this row belongs. More...
 
bool hasBeenAdded
 Whether this row has been added to the table or not. More...
 
std::string type
 ===> Attribute type More...
 
std::string reason
 ===> Attribute reason More...
 
int level
 ===> Attribute level More...
 
int severity
 ===> Attribute severity More...
 
bool applied
 ===> Attribute applied More...
 
std::string command
 ===> Attribute command More...
 
Extrinsic Table Attributes
Links *binary deserialization
material from an EndianIStream
std::map< std::string,
FlagCmdAttributeFromBin
fromBinMethods
 
*text deserialization material
std::map< std::string,
FlagCmdAttributeFromText
fromTextMethods
 

Friends

class asdm::FlagCmdTable
 
class asdm::RowTransformer< FlagCmdRow >
 

Detailed Description

The FlagCmdRow class is a row of a FlagCmdTable.

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

Definition at line 100 of file FlagCmdRow.h.

Constructor & Destructor Documentation

virtual asdm::FlagCmdRow::~FlagCmdRow ( )
virtual

friend class asdm::TableStreamReader<FlagCmdTable, FlagCmdRow>;

asdm::FlagCmdRow::FlagCmdRow ( FlagCmdTable table)
private

Create a FlagCmdRow.

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::FlagCmdRow::FlagCmdRow ( FlagCmdTable table,
FlagCmdRow row 
)
private

Create a FlagCmdRow using a copy constructor mechanism.

Given a FlagCmdRow row and a FlagCmdTable table, the method creates a new FlagCmdRow 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

void asdm::FlagCmdRow::appliedFromBin ( EndianIStream eis)
private
void asdm::FlagCmdRow::appliedFromText ( const std::string &  s)
private
void asdm::FlagCmdRow::commandFromBin ( EndianIStream eis)
private
void asdm::FlagCmdRow::commandFromText ( const std::string &  s)
private
Extrinsic Table Attributes Links* bool asdm::FlagCmdRow::compareNoAutoInc ( ArrayTimeInterval  timeInterval,
std::string  type,
std::string  reason,
int  level,
int  severity,
bool  applied,
std::string  command 
)

Compare each mandatory attribute except the autoincrementable one of this FlagCmdRow with the corresponding parameters and return true if there is a match and false otherwise.

Parameters
timeInterval
type
reason
level
severity
applied
command
bool asdm::FlagCmdRow::compareRequiredValue ( std::string  type,
std::string  reason,
int  level,
int  severity,
bool  applied,
std::string  command 
)

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
type
reason
level
severity
applied
command
bool asdm::FlagCmdRow::equalByRequiredValue ( FlagCmdRow 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 FlagCmdRow whose required attributes of the value part will be compared with those of this.
Returns
a boolean.
bool asdm::FlagCmdRow::getApplied ( ) const

===> Attribute applied

Get applied.

Returns
applied as bool
std::string asdm::FlagCmdRow::getCommand ( ) const

===> Attribute command

Get command.

Returns
command as std::string
int asdm::FlagCmdRow::getLevel ( ) const

===> Attribute level

Get level.

Returns
level as int
std::string asdm::FlagCmdRow::getReason ( ) const

===> Attribute reason

Get reason.

Returns
reason as std::string
int asdm::FlagCmdRow::getSeverity ( ) const

===> Attribute severity

Get severity.

Returns
severity as int
FlagCmdTable& asdm::FlagCmdRow::getTable ( ) const

Return the table to which this row belongs.

std::string asdm::FlagCmdRow::getType ( ) const

===> Attribute type

Get type.

Returns
type as std::string
bool asdm::FlagCmdRow::isAdded ( ) const

Has this row been added to its table ?

Returns
true if and only if it has been added.
void asdm::FlagCmdRow::isAdded ( bool  added)
private

This method is used by the Table class when this row is added to the table.

void asdm::FlagCmdRow::levelFromBin ( EndianIStream eis)
private
void asdm::FlagCmdRow::levelFromText ( const std::string &  s)
private
void asdm::FlagCmdRow::reasonFromBin ( EndianIStream eis)
private
void asdm::FlagCmdRow::reasonFromText ( const std::string &  s)
private
void asdm::FlagCmdRow::setApplied ( bool  applied)

Set applied with the specified bool.

Parameters
appliedThe bool value to which applied is to be set.
void asdm::FlagCmdRow::setCommand ( std::string  command)

Set command with the specified std::string.

Parameters
commandThe std::string value to which command is to be set.
void asdm::FlagCmdRow::setFromIDL ( asdmIDL::FlagCmdRowIDL  x)

Fill the values of this row from the IDL struct FlagCmdRowIDL.

Parameters
xThe IDL struct containing the values used to fill this row.
Exceptions
ConversionException
void asdm::FlagCmdRow::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::FlagCmdRow::setLevel ( int  level)

Set level with the specified int.

Parameters
levelThe int value to which level is to be set.
void asdm::FlagCmdRow::setReason ( std::string  reason)

Set reason with the specified std::string.

Parameters
reasonThe std::string value to which reason is to be set.
void asdm::FlagCmdRow::setSeverity ( int  severity)

Set severity with the specified int.

Parameters
severityThe int value to which severity is to be set.
void asdm::FlagCmdRow::setTimeInterval ( ArrayTimeInterval  timeInterval)

Set timeInterval with the specified ArrayTimeInterval.

Parameters
timeIntervalThe ArrayTimeInterval value to which timeInterval is to be set.
Exceptions
IllegalAccessExceptionIf an attempt is made to change this field after is has been added to the table.
void asdm::FlagCmdRow::setType ( std::string  type)

Set type with the specified std::string.

Parameters
typeThe std::string value to which type is to be set.
void asdm::FlagCmdRow::severityFromBin ( EndianIStream eis)
private
void asdm::FlagCmdRow::severityFromText ( const std::string &  s)
private
void asdm::FlagCmdRow::timeIntervalFromBin ( EndianIStream eis)
private
void asdm::FlagCmdRow::timeIntervalFromText ( const std::string &  s)
private
void asdm::FlagCmdRow::toBin ( EndianOSStream eoss)
private

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

Parameters
eossthe EndianOSStream to be written to
asdmIDL::FlagCmdRowIDL* asdm::FlagCmdRow::toIDL ( ) const

Return this row in the form of an IDL struct.

Returns
The values of this row as a FlagCmdRowIDL struct.
void asdm::FlagCmdRow::toIDL ( asdmIDL::FlagCmdRowIDL &  x) const

Define the content of a FlagCmdRowIDL struct from the values found in this row.

Parameters
xa reference to the FlagCmdRowIDL struct to be set.
std::string asdm::FlagCmdRow::toXML ( ) const

Return this row in the form of an XML string.

Returns
The values of this row as an XML string.
void asdm::FlagCmdRow::typeFromBin ( EndianIStream eis)
private
void asdm::FlagCmdRow::typeFromText ( const std::string &  s)
private

Friends And Related Function Documentation

friend class asdm::FlagCmdTable
friend

Definition at line 101 of file FlagCmdRow.h.

friend class asdm::RowTransformer< FlagCmdRow >
friend

Definition at line 102 of file FlagCmdRow.h.

Member Data Documentation

bool asdm::FlagCmdRow::applied
private

===> Attribute applied

Definition at line 582 of file FlagCmdRow.h.

Intrinsic Table asdm::FlagCmdRow::Attributes

Definition at line 125 of file FlagCmdRow.h.

std::string asdm::FlagCmdRow::command
private

===> Attribute command

Definition at line 593 of file FlagCmdRow.h.

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

Definition at line 612 of file FlagCmdRow.h.

* text deserialization material std::map<std::string, FlagCmdAttributeFromText> asdm::FlagCmdRow::fromTextMethods
private

Definition at line 627 of file FlagCmdRow.h.

bool asdm::FlagCmdRow::hasBeenAdded
private

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

Definition at line 483 of file FlagCmdRow.h.

int asdm::FlagCmdRow::level
private

===> Attribute level

Definition at line 560 of file FlagCmdRow.h.

std::string asdm::FlagCmdRow::reason
private

===> Attribute reason

Definition at line 549 of file FlagCmdRow.h.

int asdm::FlagCmdRow::severity
private

===> Attribute severity

Definition at line 571 of file FlagCmdRow.h.

FlagCmdTable& asdm::FlagCmdRow::table
private

The table to which this row belongs.

Definition at line 479 of file FlagCmdRow.h.

std::string asdm::FlagCmdRow::type
private

===> Attribute type

Definition at line 538 of file FlagCmdRow.h.


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