Back to index

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

#include <SALOMEDS_AttributeTableOfInteger.hxx>

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

List of all members.

Public Types

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

Public Member Functions

 SALOMEDS_AttributeTableOfInteger (SALOMEDSImpl_AttributeTableOfInteger *theAttr)
 SALOMEDS_AttributeTableOfInteger (SALOMEDS::AttributeTableOfInteger_ptr theAttr)
 ~SALOMEDS_AttributeTableOfInteger ()
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< int > &theData)
virtual void SetRow (int theRow, const std::vector< int > &theData)
virtual std::vector< int > GetRow (int theRow)
virtual void AddColumn (const std::vector< int > &theData)
virtual void SetColumn (int theColumn, const std::vector< int > &theData)
virtual std::vector< int > GetColumn (int theColumn)
virtual void PutValue (int theValue, int theRow, int theColumn)
virtual bool HasValue (int theRow, int theColumn)
virtual int 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_AttributeTableOfInteger.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_AttributeTableOfInteger::SALOMEDS_AttributeTableOfInteger ( SALOMEDSImpl_AttributeTableOfInteger *  theAttr)

Definition at line 31 of file SALOMEDS_AttributeTableOfInteger.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeTableOfInteger::SALOMEDS_AttributeTableOfInteger ( SALOMEDS::AttributeTableOfInteger_ptr  theAttr)

Definition at line 36 of file SALOMEDS_AttributeTableOfInteger.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 40 of file SALOMEDS_AttributeTableOfInteger.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_AttributeTableOfInteger::AddColumn ( const std::vector< int > &  theData) [virtual]

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 334 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfInteger::AddRow ( const std::vector< int > &  theData) [virtual]

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 273 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  int aLength = theData.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTableOfInteger* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl);
    try {
      aTable->SetRowData(aTable->GetNbRows() + 1, theData);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSeq = new SALOMEDS::LongSeq();
    aSeq->length(aLength);
    for(i = 0; i < aLength; i++) aSeq[i] = theData[i];
    SALOMEDS::AttributeTableOfInteger::_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< int > SALOMEDS_AttributeTableOfInteger::GetColumn ( int  theColumn) [virtual]

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 378 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->GetColumnData(theColumn);
  }
  else {
    SALOMEDS::LongSeq_var aColumn = SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::GetColumnTitle ( int  theIndex) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 138 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 174 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<std::string> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->GetColumnTitles();
  }
  else {
    SALOMEDS::StringSeq_var aSeq = SALOMEDS::AttributeTableOfInteger::_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 261 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTable.

Definition at line 250 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 317 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->GetRowData(theRow);
  }
  else {
    SALOMEDS::LongSeq_var aRow = SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::GetRowSetIndices ( int  theRow) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 456 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->GetSetRowIndices(theRow);
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::GetRowTitle ( int  theIndex) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 75 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 112 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<std::string> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->GetRowTitles();
  }
  else {
    SALOMEDS::StringSeq_var aSeq = SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::GetRowUnit ( int  theIndex) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 200 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 234 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<std::string> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->GetRowUnits();
  }
  else {
    SALOMEDS::StringSeq_var aSeq = SALOMEDS::AttributeTableOfInteger::_narrow(_corba_impl)->GetRowUnits();
    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_AttributeTableOfInteger::GetTitle ( ) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 54 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

int SALOMEDS_AttributeTableOfInteger::GetValue ( int  theRow,
int  theColumn 
) [virtual]

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 422 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 411 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 394 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 440 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 356 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 128 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 156 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 473 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTableOfInteger.

Definition at line 295 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 65 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 93 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 190 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 218 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  int aLength = theUnits.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_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::AttributeTableOfInteger::_narrow(_corba_impl)->SetRowUnits(aSeq);
  }
}

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 44 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 560 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->SortByColumn(theColumn, 
                                                                                               (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                               (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::SortByRow ( int  theRow,
SortOrder  theOrder,
SortPolicy  thePolicy 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 534 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->SortByRow(theRow, 
                                                                                            (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                            (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::SortColumn ( int  theColumn,
SortOrder  theOrder,
SortPolicy  thePolicy 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 508 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->SortColumn(theColumn, 
                                                                                             (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                             (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::SortRow ( int  theRow,
SortOrder  theOrder,
SortPolicy  thePolicy 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 482 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  std::vector<int> aVector;
  int aLength, i;
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      aVector = dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->SortRow(theRow, 
                                                                                          (SALOMEDSImpl_AttributeTable::SortOrder)theOrder, 
                                                                                          (SALOMEDSImpl_AttributeTable::SortPolicy)thePolicy);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::LongSeq_var aSet =
      SALOMEDS::AttributeTableOfInteger::_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_AttributeTableOfInteger::SwapCells ( int  theRow1,
int  theColumn1,
int  theRow2,
int  theColumn2 
) [virtual]

Implements SALOMEDSClient_AttributeTable.

Definition at line 586 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 618 of file SALOMEDS_AttributeTableOfInteger.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 602 of file SALOMEDS_AttributeTableOfInteger.cxx.

{
  if (_isLocal) {
    SALOMEDS::Locker lock;
    try {
      dynamic_cast<SALOMEDSImpl_AttributeTableOfInteger*>(_local_impl)->SwapRows(theRow1, theRow2);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectIndex();
    }
  }
  else {
    SALOMEDS::AttributeTableOfInteger::_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: