Back to index

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

#include <SALOMEDS_AttributeTableOfString.hxx>

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

List of all members.

Public Types

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

Public Member Functions

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

Definition at line 33 of file SALOMEDS_AttributeTableOfString.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}
SALOMEDS_AttributeTableOfString::SALOMEDS_AttributeTableOfString ( SALOMEDS::AttributeTableOfString_ptr  theAttr)

Definition at line 38 of file SALOMEDS_AttributeTableOfString.cxx.

:SALOMEDS_GenericAttribute(theAttr)
{}

Definition at line 42 of file SALOMEDS_AttributeTableOfString.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_AttributeTableOfString::AddColumn ( const std::vector< std::string > &  theData) [virtual]

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 330 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString::AddRow ( const std::vector< std::string > &  theData) [virtual]

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 269 of file SALOMEDS_AttributeTableOfString.cxx.

{
  int aLength = theData.size(), i;
  if (_isLocal) {
    CheckLocked();
    SALOMEDS::Locker lock;
    SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_local_impl);
    try {
      aTable->SetRowData(aTable->GetNbRows() + 1, theData);
    }   
    catch(...) {
      throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
    }
  }
  else {
    SALOMEDS::StringSeq_var aSeq = new SALOMEDS::StringSeq();
    aSeq->length(aLength);
    for (i = 0; i < aLength; i++) aSeq[i] = (char*)theData[i].c_str();
    SALOMEDS::AttributeTableOfString::_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< std::string > SALOMEDS_AttributeTableOfString::GetColumn ( int  theColumn) [virtual]

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 374 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 137 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 171 of file SALOMEDS_AttributeTableOfString.cxx.

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

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

Here is the call graph for this function:

Implements SALOMEDSClient_AttributeTable.

Definition at line 247 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 313 of file SALOMEDS_AttributeTableOfString.cxx.

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

  return aVector;
}

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 453 of file SALOMEDS_AttributeTableOfString.cxx.

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 77 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 111 of file SALOMEDS_AttributeTableOfString.cxx.

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 197 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 231 of file SALOMEDS_AttributeTableOfString.cxx.

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 56 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

std::string SALOMEDS_AttributeTableOfString::GetValue ( int  theRow,
int  theColumn 
) [virtual]

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 419 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 408 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString::PutValue ( const std::string &  theValue,
int  theRow,
int  theColumn 
) [virtual]

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 391 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 437 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 352 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 127 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 155 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 470 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTableOfString.

Definition at line 291 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 67 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 95 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 187 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 215 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 46 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 557 of file SALOMEDS_AttributeTableOfString.cxx.

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 531 of file SALOMEDS_AttributeTableOfString.cxx.

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 505 of file SALOMEDS_AttributeTableOfString.cxx.

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 479 of file SALOMEDS_AttributeTableOfString.cxx.

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 583 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 615 of file SALOMEDS_AttributeTableOfString.cxx.

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

Here is the call graph for this function:

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

Implements SALOMEDSClient_AttributeTable.

Definition at line 599 of file SALOMEDS_AttributeTableOfString.cxx.

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