Back to index

salome-kernel  6.5.0
Public Types | Public Member Functions
SALOMEDS_AttributeTableOfReal Class Reference

#include <SALOMEDS_AttributeTableOfReal.hxx>

Inheritance diagram for SALOMEDS_AttributeTableOfReal:
Inheritance graph
[legend]
Collaboration diagram for SALOMEDS_AttributeTableOfReal:
Collaboration graph
[legend]

List of all members.

Public Types

enum  SortOrder { AscendingOrder, DescendingOrder }
enum  SortPolicy {
  EmptyLowest, EmptyHighest, EmptyFirst, EmptyLast,
  EmptyIgnore
}

Public Member Functions

 SALOMEDS_AttributeTableOfReal (SALOMEDSImpl_AttributeTableOfReal *theAttr)
 SALOMEDS_AttributeTableOfReal (SALOMEDS::AttributeTableOfReal_ptr theAttr)
 ~SALOMEDS_AttributeTableOfReal ()
virtual void SetTitle (const std::string &theTitle)
virtual std::string GetTitle ()
virtual void SetRowTitle (int theIndex, const std::string &theTitle)
virtual std::string GetRowTitle (int theIndex)
virtual void SetRowTitles (const std::vector< std::string > &theTitles)
virtual std::vector< std::string > GetRowTitles ()
virtual void SetColumnTitle (int theIndex, const std::string &theTitle)
virtual std::string GetColumnTitle (int theIndex)
virtual void SetColumnTitles (const std::vector< std::string > &theTitles)
virtual std::vector< std::string > GetColumnTitles ()
virtual void SetRowUnit (int theIndex, const std::string &theUnit)
virtual std::string GetRowUnit (int theIndex)
virtual void SetRowUnits (const std::vector< std::string > &theUnits)
virtual std::vector< std::string > GetRowUnits ()
virtual int GetNbRows ()
virtual int GetNbColumns ()
virtual void AddRow (const std::vector< double > &theData)
virtual void SetRow (int theRow, const std::vector< double > &theData)
virtual std::vector< double > GetRow (int theRow)
virtual void AddColumn (const std::vector< double > &theData)
virtual void SetColumn (int theColumn, const std::vector< double > &theData)
virtual std::vector< double > GetColumn (int theColumn)
virtual void PutValue (double theValue, int theRow, int theColumn)
virtual bool HasValue (int theRow, int theColumn)
virtual double GetValue (int theRow, int theColumn)
virtual void RemoveValue (int theRow, int theColumn)
virtual std::vector< int > GetRowSetIndices (int theRow)
virtual void SetNbColumns (int theNbColumns)
virtual std::vector< int > SortRow (int theRow, SortOrder theOrder, SortPolicy thePolicy)
virtual std::vector< int > SortColumn (int theColumn, SortOrder theOrder, SortPolicy thePolicy)
virtual std::vector< int > SortByRow (int theRow, SortOrder theOrder, SortPolicy thePolicy)
virtual std::vector< int > SortByColumn (int theColumn, SortOrder theOrder, SortPolicy thePolicy)
virtual void SwapCells (int theRow1, int theColumn1, int theRow2, int theColumn2)
virtual void SwapRows (int theRow1, int theRow2)
virtual void SwapColumns (int theColumn1, int theColumn2)
virtual void CheckLocked ()=0
virtual std::string Type ()=0
virtual std::string GetClassType ()=0
virtual _PTR (SObject) GetSObject()=0

Detailed Description

Definition at line 41 of file SALOMEDS_AttributeTableOfReal.hxx.


Member Enumeration Documentation

Enumerator:
AscendingOrder 
DescendingOrder 

Definition at line 34 of file SALOMEDSClient_AttributeTable.hxx.

Enumerator:
EmptyLowest 
EmptyHighest 
EmptyFirst 
EmptyLast 
EmptyIgnore 

Definition at line 39 of file SALOMEDSClient_AttributeTable.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTableOfReal::SALOMEDS_AttributeTableOfReal ( SALOMEDSImpl_AttributeTableOfReal *  theAttr)

Definition at line 31 of file SALOMEDS_AttributeTableOfReal.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeTableOfReal::SALOMEDS_AttributeTableOfReal ( SALOMEDS::AttributeTableOfReal_ptr  theAttr)

Definition at line 35 of file SALOMEDS_AttributeTableOfReal.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 39 of file SALOMEDS_AttributeTableOfReal.cxx.

{}

Member Function Documentation

virtual SALOMEDSClient_GenericAttribute::_PTR ( SObject  ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

Here is the caller graph for this function:

void SALOMEDS_AttributeTableOfReal::AddColumn ( const std::vector< double > &  theData) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 328 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  int aLength = theData.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    SALOMEDSImpl_AttributeTableOfReal* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl);
    try {
      aTable->SetColumnData(aTable->GetNbColumns() + 1, theData);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
    }
  }
  else {
    SALOMEDS::DoubleSeq_var aColumn = new SALOMEDS::DoubleSeq();
    aColumn->length(aLength);
    for (i = 0; i < aLength; i++) aColumn[i] = theData[i];
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->AddColumn(aColumn);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::AddRow ( const std::vector< double > &  theData) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 267 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  int aLength = theData.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    SALOMEDSImpl_AttributeTableOfReal* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl);
    try {
      aTable->SetRowData(aTable->GetNbRows() + 1, theData);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
    }
  }
  else {
    SALOMEDS::DoubleSeq_var aSeq = new SALOMEDS::DoubleSeq();
    aSeq->length(aLength);
    for (i = 0; i < aLength; i++) aSeq[i] = theData[i];
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->AddRow(aSeq);
  }
}

Here is the call graph for this function:

virtual void SALOMEDSClient_GenericAttribute::CheckLocked ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

virtual std::string SALOMEDSClient_GenericAttribute::GetClassType ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.

std::vector< double > SALOMEDS_AttributeTableOfReal::GetColumn ( int  theColumn) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 372 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<double> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetColumnData(theColumn);
  }
  else {
    SALOMEDS::DoubleSeq_var aColumn = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetColumn(theColumn);
    aLength = aColumn->length();
    for (i = 0; i < aLength; i++) aVector.push_back(aColumn[i]);
  }
  return aVector;
}

Here is the call graph for this function:

std::string SALOMEDS_AttributeTableOfReal::GetColumnTitle ( int  theIndex) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 135 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::string aTitle;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aTitle = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetColumnTitle(theIndex);
    }
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    aTitle = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetColumnTitle(theIndex);
  }
  return aTitle;
}

Here is the call graph for this function:

std::vector< std::string > SALOMEDS_AttributeTableOfReal::GetColumnTitles ( ) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 169 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<std::string> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetColumnTitles();
  }
  else {
    SALOMEDS::StringSeq_var aSeq = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetColumnTitles();
    aLength = aSeq->length();
    for (i = 0; i < aLength; i++) aVector.push_back((char*)aSeq[i].in());
  }
  return aVector;
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTable.

Definition at line 256 of file SALOMEDS_AttributeTableOfReal.cxx.

{  
  int aNb;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aNb = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetNbColumns();
  }
  else aNb = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetNbColumns();
  return aNb;
}

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTable.

Definition at line 245 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  int aNb;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aNb = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetNbRows();
  }
  else aNb = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetNbRows();
  return aNb;
}

Here is the call graph for this function:

std::vector< double > SALOMEDS_AttributeTableOfReal::GetRow ( int  theRow) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 311 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<double> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetRowData(theRow);
  }
  else {
    SALOMEDS::DoubleSeq_var aRow = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetRow(theRow);
    aLength = aRow->length();
    for (i = 0; i < aLength; i++) aVector.push_back(aRow[i]);
  }

  return aVector;
}

Here is the call graph for this function:

std::vector< int > SALOMEDS_AttributeTableOfReal::GetRowSetIndices ( int  theRow) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 450 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetSetRowIndices(theRow);
  }
  else {
    SALOMEDS::LongSeq_var aSet = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetRowSetIndices(theRow);
    aLength = aSet->length();
    for (i = 0; i < aLength; i++) aVector.push_back(aSet[i]);
  }
  return aVector;
}

Here is the call graph for this function:

std::string SALOMEDS_AttributeTableOfReal::GetRowTitle ( int  theIndex) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 74 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::string aTitle;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aTitle = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetRowTitle(theIndex);
    }
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    aTitle = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetRowTitle(theIndex);
  }
  return aTitle;
}

Here is the call graph for this function:

std::vector< std::string > SALOMEDS_AttributeTableOfReal::GetRowTitles ( ) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 109 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<std::string> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetRowTitles();
  }
  else {
    SALOMEDS::StringSeq_var aSeq = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetRowTitles();
    aLength = aSeq->length();
    for (i = 0; i < aLength; i++) aVector.push_back((char*)aSeq[i].in());
  }
  return aVector;
}

Here is the call graph for this function:

std::string SALOMEDS_AttributeTableOfReal::GetRowUnit ( int  theIndex) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 195 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::string aTitle;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aTitle = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetRowUnit(theIndex);
    }
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    aTitle = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetRowUnit(theIndex);
  }
  return aTitle;
}

Here is the call graph for this function:

std::vector< std::string > SALOMEDS_AttributeTableOfReal::GetRowUnits ( ) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 229 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<std::string> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetRowUnits();
  }
  else {
    SALOMEDS::StringSeq_var aSeq = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetRowUnits();
    aLength = aSeq->length();
    for (i = 0; i < aLength; i++) aVector.push_back(std::string(aSeq[i].in()));
  }
  return aVector;
}

Here is the call graph for this function:

std::string SALOMEDS_AttributeTableOfReal::GetTitle ( ) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 53 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::string aStr;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    aStr = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetTitle();
  }
  else aStr = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetTitle();
  return aStr;
}

Here is the call graph for this function:

double SALOMEDS_AttributeTableOfReal::GetValue ( int  theRow,
int  theColumn 
) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 416 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  double aValue;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    try {
      aValue = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->GetValue(theRow, theColumn);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    aValue = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->GetValue(theRow, theColumn);
  }
  return aValue;
}

Here is the call graph for this function:

bool SALOMEDS_AttributeTableOfReal::HasValue ( int  theRow,
int  theColumn 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 405 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  bool ret;
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    ret = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->HasValue(theRow, theColumn);
  }
  else ret = SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->HasValue(theRow, theColumn);
  return ret;
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::PutValue ( double  theValue,
int  theRow,
int  theColumn 
) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 388 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    try {
      dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->PutValue(theValue, theRow, theColumn);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->PutValue(theValue, theRow, theColumn);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::RemoveValue ( int  theRow,
int  theColumn 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 434 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->RemoveValue(theRow, theColumn);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->RemoveValue(theRow, theColumn);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetColumn ( int  theColumn,
const std::vector< double > &  theData 
) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 350 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  int aLength = theData.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    SALOMEDSImpl_AttributeTableOfReal* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl);
    try {
      aTable->SetColumnData(theColumn, theData);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
    }
  }
  else {
    SALOMEDS::DoubleSeq_var aColumn = new SALOMEDS::DoubleSeq();
    aColumn->length(aLength);
    for (i = 0; i < aLength; i++) aColumn[i] = theData[i];
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetColumn(theColumn, aColumn);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetColumnTitle ( int  theIndex,
const std::string &  theTitle 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 125 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetColumnTitle(theIndex, theTitle);
  }
  else SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetColumnTitle(theIndex, theTitle.c_str());
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetColumnTitles ( const std::vector< std::string > &  theTitles) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 153 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  int aLength = theTitles.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetColumnTitles(theTitles);
  }
  else {
    SALOMEDS::StringSeq_var aSeq = new SALOMEDS::StringSeq();
    aSeq->length(aLength);
    for (i = 0; i < aLength; i++) aSeq[i] = (char*)theTitles[i].c_str();
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetColumnTitles(aSeq);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetNbColumns ( int  theNbColumns) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 466 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock; 
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetNbColumns(theNbColumns);
  }
  else SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetNbColumns(theNbColumns);
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetRow ( int  theRow,
const std::vector< double > &  theData 
) [virtual]

Implements SALOMEDSClient_AttributeTableOfReal.

Definition at line 289 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  int aLength = theData.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    SALOMEDSImpl_AttributeTableOfReal* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl);
    try {
      aTable->SetRowData(theRow, theData);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
    }
  }
  else {
    SALOMEDS::DoubleSeq_var aSeq = new SALOMEDS::DoubleSeq();
    aSeq->length(aLength);
    for (i = 0; i < aLength; i++) aSeq[i] = theData[i];
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetRow(theRow, aSeq);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetRowTitle ( int  theIndex,
const std::string &  theTitle 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 64 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;     
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetRowTitle(theIndex, theTitle);
  }
  else SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetRowTitle(theIndex, theTitle.c_str());
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetRowTitles ( const std::vector< std::string > &  theTitles) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 92 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  CheckLocked();
  int aLength = theTitles.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;     
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetRowTitles(theTitles);
  }
  else {
    SALOMEDS::StringSeq_var aSeq = new SALOMEDS::StringSeq();
    aSeq->length(aLength);
    for (i = 0; i < aLength; i++) aSeq[i] = (char*)theTitles[i].c_str();
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetRowTitles(aSeq);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetRowUnit ( int  theIndex,
const std::string &  theUnit 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 185 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetRowUnit(theIndex, theUnit);
  }
  else SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetRowUnit(theIndex, theUnit.c_str());
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetRowUnits ( const std::vector< std::string > &  theUnits) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 213 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  int aLength = theUnits.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock; 
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetRowUnits(theUnits);
  }
  else {
    SALOMEDS::StringSeq_var aSeq = new SALOMEDS::StringSeq();
    aSeq->length(aLength);
    for (i = 0; i < aLength; i++) aSeq[i] = (char*)theUnits[i].c_str();
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetRowUnits(aSeq);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SetTitle ( const std::string &  theTitle) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 43 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;     
    dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SetTitle(theTitle);
  }
  else SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SetTitle(theTitle.c_str());
}

Here is the call graph for this function:

Here is the caller graph for this function:

std::vector< int > SALOMEDS_AttributeTableOfReal::SortByColumn ( int  theColumn,
SortOrder  theOrder,
SortPolicy  thePolicy 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 553 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SortByColumn(theColumn, 
                                                                                            (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                            (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SortByColumn(theColumn, 
                                                                         (SALOMEDS::AttributeTable::SortOrder)theOrder, 
                                                                         (SALOMEDS::AttributeTable::SortPolicy)thePolicy);
    aLength = aSet->length();  
    for (i = 0; i < aLength; i++) aVector.push_back(aSet[i]);
  }
  return aVector;
}

Here is the call graph for this function:

std::vector< int > SALOMEDS_AttributeTableOfReal::SortByRow ( int  theRow,
SortOrder  theOrder,
SortPolicy  thePolicy 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 527 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SortByRow(theRow, 
                                                                                         (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                         (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SortByRow(theRow, 
                                                                      (SALOMEDS::AttributeTable::SortOrder)theOrder, 
                                                                      (SALOMEDS::AttributeTable::SortPolicy)thePolicy);
    aLength = aSet->length();  
    for (i = 0; i < aLength; i++) aVector.push_back(aSet[i]);
  }
  return aVector;
}

Here is the call graph for this function:

std::vector< int > SALOMEDS_AttributeTableOfReal::SortColumn ( int  theColumn,
SortOrder  theOrder,
SortPolicy  thePolicy 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 501 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SortColumn(theColumn, 
                                                                                          (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                          (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SortColumn(theColumn, 
                                                                       (SALOMEDS::AttributeTable::SortOrder)theOrder, 
                                                                       (SALOMEDS::AttributeTable::SortPolicy)thePolicy);
    aLength = aSet->length();  
    for (i = 0; i < aLength; i++) aVector.push_back(aSet[i]);
  }
  return aVector;
}

Here is the call graph for this function:

std::vector< int > SALOMEDS_AttributeTableOfReal::SortRow ( int  theRow,
SortOrder  theOrder,
SortPolicy  thePolicy 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 475 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SortRow(theRow, 
                                                                                       (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                       (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SortRow(theRow, 
                                                                    (SALOMEDS::AttributeTable::SortOrder)theOrder, 
                                                                    (SALOMEDS::AttributeTable::SortPolicy)thePolicy);
    aLength = aSet->length();  
    for (i = 0; i < aLength; i++) aVector.push_back(aSet[i]);
  }
  return aVector;
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SwapCells ( int  theRow1,
int  theColumn1,
int  theRow2,
int  theColumn2 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 579 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SwapCells(theRow1, theColumn1, theRow2, theColumn2);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SwapCells(theRow1, theColumn1, theRow2, theColumn2);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SwapColumns ( int  theColumn1,
int  theColumn2 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 611 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SwapColumns(theColumn1, theColumn2);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SwapColumns(theColumn1, theColumn2);
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfReal::SwapRows ( int  theRow1,
int  theRow2 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 595 of file SALOMEDS_AttributeTableOfReal.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      dynamic_cast<SALOMEDSImpl_AttributeTableOfReal*>(_local_impl)->SwapRows(theRow1, theRow2);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::AttributeTableOfReal::_narrow(_corba_impl)->SwapRows(theRow1, theRow2);
  }
}

Here is the call graph for this function:

virtual std::string SALOMEDSClient_GenericAttribute::Type ( ) [pure virtual, inherited]

Implemented in Standard_EXPORT, and Standard_EXPORT.


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