asdm::FlagCmdRow Class Reference

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

#include <FlagCmdRow.h>

List of all members.

Public Member Functions

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

Private Attributes

FlagCmdTabletable
 The table to which this row belongs.
bool hasBeenAdded
 Whether this row has been added to the table or not.
string type
 ===> Attribute type
string reason
 ===> Attribute reason
int level
 ===> Attribute level
int severity
 ===> Attribute severity
bool applied
 ===> Attribute applied
string command
 ===> Attribute command
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.64", branch "HEAD"

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

Member Function Documentation

void asdm::FlagCmdRow::appliedFromBin ( EndianIStream eis  )  [private]
void asdm::FlagCmdRow::appliedFromText ( const string &  s  )  [private]
void asdm::FlagCmdRow::commandFromBin ( EndianIStream eis  )  [private]
void asdm::FlagCmdRow::commandFromText ( const string &  s  )  [private]
Extrinsic Table Attributes Links* bool asdm::FlagCmdRow::compareNoAutoInc ( ArrayTimeInterval  timeInterval,
string  type,
string  reason,
int  level,
int  severity,
bool  applied,
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 ( string  type,
string  reason,
int  level,
int  severity,
bool  applied,
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:
x a 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
string asdm::FlagCmdRow::getCommand (  )  const

===> Attribute command

Get command.

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

===> Attribute level

Get level.

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

===> Attribute reason

Get reason.

Returns:
reason as 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.

string asdm::FlagCmdRow::getType (  )  const

===> Attribute type

Get type.

Returns:
type as string
void asdm::FlagCmdRow::isAdded ( bool  added  )  [private]

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

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::levelFromBin ( EndianIStream eis  )  [private]
void asdm::FlagCmdRow::levelFromText ( const string &  s  )  [private]
void asdm::FlagCmdRow::reasonFromBin ( EndianIStream eis  )  [private]
void asdm::FlagCmdRow::reasonFromText ( const string &  s  )  [private]
void asdm::FlagCmdRow::setApplied ( bool  applied  ) 

Set applied with the specified bool.

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

Set command with the specified string.

Parameters:
command The 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:
x The 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:
rowDoc the 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:
level The int value to which level is to be set.
void asdm::FlagCmdRow::setReason ( string  reason  ) 

Set reason with the specified string.

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

Set severity with the specified int.

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

Set timeInterval with the specified ArrayTimeInterval.

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

Set type with the specified string.

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

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

Parameters:
eoss the EndianOSStream to be written to
void asdm::FlagCmdRow::toIDL ( asdmIDL::FlagCmdRowIDL &  x  )  const

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

Parameters:
x a reference to the FlagCmdRowIDL struct to be set.
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.
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 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.

Definition at line 125 of file FlagCmdRow.h.

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.

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.

string asdm::FlagCmdRow::reason [private]

===> Attribute reason

Definition at line 549 of file FlagCmdRow.h.

===> Attribute severity

Definition at line 571 of file FlagCmdRow.h.

The table to which this row belongs.

Definition at line 479 of file FlagCmdRow.h.

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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1