Back to index

salome-kernel  6.5.0
Public Member Functions
SALOMEDS_AttributeTableOfString_i Class Reference

#include <SALOMEDS_AttributeTableOfString_i.hxx>

List of all members.

Public Member Functions

 SALOMEDS_AttributeTableOfString_i (SALOMEDSImpl_AttributeTableOfString *theAttr, CORBA::ORB_ptr orb)
 ~SALOMEDS_AttributeTableOfString_i ()
virtual void SetTitle (const char *theTitle)
virtual char * GetTitle ()
virtual void SetRowTitle (CORBA::Long theIndex, const char *theTitle) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual char * GetRowTitle (CORBA::Long theIndex) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void SetRowTitles (const SALOMEDS::StringSeq &theTitles) throw (SALOMEDS::AttributeTable::IncorrectArgumentLength)
virtual SALOMEDS::StringSeqGetRowTitles ()
virtual void SetColumnTitle (CORBA::Long theIndex, const char *theTitle) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual char * GetColumnTitle (CORBA::Long theIndex) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void SetColumnTitles (const SALOMEDS::StringSeq &theTitles) throw (SALOMEDS::AttributeTable::IncorrectArgumentLength)
virtual SALOMEDS::StringSeqGetColumnTitles ()
virtual void SetRowUnit (CORBA::Long theIndex, const char *theUnit) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual char * GetRowUnit (CORBA::Long theIndex) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void SetRowUnits (const SALOMEDS::StringSeq &theUnits) throw (SALOMEDS::AttributeTable::IncorrectArgumentLength)
virtual SALOMEDS::StringSeqGetRowUnits ()
virtual CORBA::Long GetNbRows ()
virtual CORBA::Long GetNbColumns ()
virtual void AddRow (const SALOMEDS::StringSeq &theData) throw (SALOMEDS::AttributeTable::IncorrectArgumentLength)
virtual void SetRow (CORBA::Long theRow, const SALOMEDS::StringSeq &theData) throw (SALOMEDS::AttributeTable::IncorrectArgumentLength, SALOMEDS::AttributeTable::IncorrectIndex)
virtual SALOMEDS::StringSeqGetRow (CORBA::Long theRow) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void AddColumn (const SALOMEDS::StringSeq &theData) throw (SALOMEDS::AttributeTable::IncorrectArgumentLength)
virtual void SetColumn (CORBA::Long theColumn, const SALOMEDS::StringSeq &theData) throw (SALOMEDS::AttributeTable::IncorrectArgumentLength, SALOMEDS::AttributeTable::IncorrectIndex)
virtual SALOMEDS::StringSeqGetColumn (CORBA::Long theColumn) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void PutValue (const char *theValue, CORBA::Long theRow, CORBA::Long theColumn) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual CORBA::Boolean HasValue (CORBA::Long theRow, CORBA::Long theColumn)
virtual char * GetValue (CORBA::Long theRow, CORBA::Long theColumn) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void RemoveValue (CORBA::Long theRow, CORBA::Long theColumn) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual SALOMEDS::LongSeqGetRowSetIndices (CORBA::Long theRow)
virtual void SetNbColumns (CORBA::Long theNbColumns)
virtual SALOMEDS::LongSeqSortRow (CORBA::Long theRow, SALOMEDS::AttributeTable::SortOrder sortOrder, SALOMEDS::AttributeTable::SortPolicy sortPolicy) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual SALOMEDS::LongSeqSortColumn (CORBA::Long theColumn, SALOMEDS::AttributeTable::SortOrder sortOrder, SALOMEDS::AttributeTable::SortPolicy sortPolicy) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual SALOMEDS::LongSeqSortByRow (CORBA::Long theRow, SALOMEDS::AttributeTable::SortOrder sortOrder, SALOMEDS::AttributeTable::SortPolicy sortPolicy) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual SALOMEDS::LongSeqSortByColumn (CORBA::Long theColumn, SALOMEDS::AttributeTable::SortOrder sortOrder, SALOMEDS::AttributeTable::SortPolicy sortPolicy) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void SwapCells (CORBA::Long theRow1, CORBA::Long theColumn1, CORBA::Long theRow2, CORBA::Long theColumn2) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void SwapRows (CORBA::Long theRow1, CORBA::Long theRow2) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual void SwapColumns (CORBA::Long theColumn1, CORBA::Long theColumn2) throw (SALOMEDS::AttributeTable::IncorrectIndex)
virtual bool ReadFromFile (const SALOMEDS::TMPFile &theStream)
virtual SALOMEDS::TMPFileSaveToFile ()

Detailed Description

Definition at line 37 of file SALOMEDS_AttributeTableOfString_i.hxx.


Constructor & Destructor Documentation

SALOMEDS_AttributeTableOfString_i::SALOMEDS_AttributeTableOfString_i ( SALOMEDSImpl_AttributeTableOfString *  theAttr,
CORBA::ORB_ptr  orb 
) [inline]

Definition at line 42 of file SALOMEDS_AttributeTableOfString_i.hxx.

    :SALOMEDS_GenericAttribute_i(theAttr, orb) {}; 

Definition at line 45 of file SALOMEDS_AttributeTableOfString_i.hxx.

{};

Member Function Documentation

Definition at line 255 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectArgumentLength);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  
  std::vector<std::string> aColumn;
  for (int i = 0; i < theData.length(); i++) aColumn.push_back(std::string(CORBA::string_dup(theData[i])));
  aTable->SetColumnData(aTable->GetNbColumns() + 1, aColumn);
}

Here is the call graph for this function:

Definition at line 212 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectArgumentLength);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  
  std::vector<std::string> aRow;
  for (int i = 0; i < theData.length(); i++) aRow.push_back(std::string(CORBA::string_dup(theData[i])));
  aTable->SetRowData(aTable->GetNbRows() + 1, aRow);
}

Here is the call graph for this function:

Definition at line 281 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theColumn <= 0 || theColumn > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  SALOMEDS::StringSeq_var CorbaSeq = new SALOMEDS::StringSeq;
  std::vector<std::string> aColumn = aTable->GetColumnData(theColumn);
  CorbaSeq->length(aColumn.size());
  for (int i = 0; i < aColumn.size(); i++) {
    CorbaSeq[i] = CORBA::string_dup(aColumn[i].c_str());
  }
  return CorbaSeq._retn();
}

Here is the call graph for this function:

Definition at line 115 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch (ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theIndex <= 0 || theIndex > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  CORBA::String_var c_s = CORBA::string_dup(aTable->GetColumnTitle(theIndex).c_str());
  return c_s._retn();
}

Here is the call graph for this function:

Definition at line 140 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  SALOMEDS::StringSeq_var aTitles = new SALOMEDS::StringSeq;
  aTitles->length(aTable->GetNbColumns());
  for(int i = 0; i < aTitles->length(); i++)
    aTitles[i] = CORBA::string_dup(aTable->GetColumnTitle(i + 1).c_str());
  return aTitles._retn();
}

Here is the call graph for this function:

Definition at line 206 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  return dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl)->GetNbColumns();
}

Here is the call graph for this function:

Definition at line 200 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  return dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl)->GetNbRows();
}

Here is the call graph for this function:

Definition at line 238 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theRow <= 0 || theRow > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  SALOMEDS::StringSeq_var CorbaSeq = new SALOMEDS::StringSeq;
  std::vector<std::string> aRow = aTable->GetRowData(theRow);
  CorbaSeq->length(aRow.size());
  for (int i = 0; i < aRow.size(); i++) {
    CorbaSeq[i] = CORBA::string_dup(aRow[i].c_str());
  }
  return CorbaSeq._retn();
}

Here is the call graph for this function:

Definition at line 352 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);

  if(theRow <= 0 || theRow > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  SALOMEDS::LongSeq_var CorbaSeq = new SALOMEDS::LongSeq;
  std::vector<int> aSeq = aTable->GetSetRowIndices(theRow);
  CorbaSeq->length(aSeq.size());
  for (int i = 0; i < aSeq.size(); i++) {
    CorbaSeq[i] = aSeq[i];
  }
  return CorbaSeq._retn(); 
}

Here is the call graph for this function:

Definition at line 68 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch (ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theIndex <= 0 || theIndex > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  CORBA::String_var c_s = CORBA::string_dup(aTable->GetRowTitle(theIndex).c_str());
  return c_s._retn();
}

Here is the call graph for this function:

Definition at line 93 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  SALOMEDS::StringSeq_var aTitles = new SALOMEDS::StringSeq;
  aTitles->length(aTable->GetNbRows());
  for(int i = 0; i < aTitles->length(); i++)
    aTitles[i] =CORBA::string_dup(aTable->GetRowTitle(i + 1).c_str());
  return aTitles._retn();
}

Here is the call graph for this function:

Definition at line 163 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch (ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theIndex <= 0 || theIndex > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  CORBA::String_var c_s = CORBA::string_dup(aTable->GetRowUnit(theIndex).c_str());
  return c_s._retn();
}

Here is the call graph for this function:

Definition at line 188 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  SALOMEDS::StringSeq_var aUnits = new SALOMEDS::StringSeq;
  aUnits->length(aTable->GetNbRows());
  for(int i = 0; i < aUnits->length(); i++)
    aUnits[i] = CORBA::string_dup(aTable->GetRowUnit(i + 1).c_str());
  return aUnits._retn();
}

Here is the call graph for this function:

Definition at line 48 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  CORBA::String_var c_s = CORBA::string_dup(aTable->GetTitle().c_str());
  return c_s._retn();
}

Here is the call graph for this function:

char * SALOMEDS_AttributeTableOfString_i::GetValue ( CORBA::Long  theRow,
CORBA::Long  theColumn 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 316 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theRow > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  std::string aValue;
  try {
    aValue = aTable->GetValue(theRow, theColumn);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }

  return CORBA::string_dup(aValue.c_str());
}

Here is the call graph for this function:

CORBA::Boolean SALOMEDS_AttributeTableOfString_i::HasValue ( CORBA::Long  theRow,
CORBA::Long  theColumn 
) [virtual]

Definition at line 310 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  return dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl)->HasValue(theRow, theColumn);
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::PutValue ( const char *  theValue,
CORBA::Long  theRow,
CORBA::Long  theColumn 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 298 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  char* aValue = CORBA::string_dup(theValue);

  aTable->PutValue(aValue, theRow, theColumn);
}

Here is the call graph for this function:

Definition at line 375 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);

  std::string aStream((char*)&theStream[0], theStream.length());
  aTable->Load(aStream);
  return true;
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::RemoveValue ( CORBA::Long  theRow,
CORBA::Long  theColumn 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 335 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theRow    < 1 || theRow    > aTable->GetNbRows())    throw SALOMEDS::AttributeTable::IncorrectIndex();
  if (theColumn < 1 || theColumn > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  try {
    aTable->RemoveValue(theRow, theColumn);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
}

Here is the call graph for this function:

Definition at line 385 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);

  std::string aString = aTable->Save();
  char* aBuffer = (char*)CORBA::string_dup(aString.c_str());
  int aBufferSize = strlen((char*)aBuffer);

  CORBA::Octet* anOctetBuf =  (CORBA::Octet*)aBuffer;

  SALOMEDS::TMPFile_var aStreamFile = new SALOMEDS::TMPFile(aBufferSize, aBufferSize, anOctetBuf, 1);

  return aStreamFile._retn();
}

Here is the call graph for this function:

Definition at line 268 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectArgumentLength);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  
  std::vector<std::string> aColumn;
  for (int i = 0; i < theData.length(); i++) aColumn.push_back(std::string(CORBA::string_dup(theData[i])));
  aTable->SetColumnData(theColumn, aColumn);
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SetColumnTitle ( CORBA::Long  theIndex,
const char *  theTitle 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 104 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theIndex <= 0 || theIndex > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  aTable->SetColumnTitle(theIndex, std::string((char*)theTitle));
}

Here is the call graph for this function:

Definition at line 127 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectArgumentLength);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theTitles.length() != aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
  for (int i = 0; i < theTitles.length(); i++) {
    aTable->SetColumnTitle(i + 1, std::string((char*)theTitles[i].in()));
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SetNbColumns ( CORBA::Long  theNbColumns) [virtual]

Definition at line 368 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  aTable->SetNbColumns(theNbColumns);
}

Here is the call graph for this function:

Definition at line 225 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectArgumentLength);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  
  std::vector<std::string> aRow;
  for (int i = 0; i < theData.length(); i++) aRow.push_back(std::string(CORBA::string_dup(theData[i].in())));
  aTable->SetRowData(theRow, aRow);
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SetRowTitle ( CORBA::Long  theIndex,
const char *  theTitle 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 56 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theIndex <= 0 || theIndex > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  aTable->SetRowTitle(theIndex, std::string(theTitle));
}

Here is the call graph for this function:

Definition at line 80 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectArgumentLength);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theTitles.length() != aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
  for (int i = 0; i < theTitles.length(); i++) {
    aTable->SetRowTitle(i + 1, std::string((char*)theTitles[i].in()));
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SetRowUnit ( CORBA::Long  theIndex,
const char *  theUnit 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 152 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theIndex <= 0 || theIndex > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  aTable->SetRowUnit(theIndex, std::string((char*)theUnit));
}

Here is the call graph for this function:

Definition at line 175 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectArgumentLength);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theUnits.length() != aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectArgumentLength();
  for (int i = 0; i < theUnits.length(); i++) {
    aTable->SetRowUnit(i + 1, std::string((char*)theUnits[i].in()));
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SetTitle ( const char *  theTitle) [virtual]

Definition at line 39 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  CORBA::String_var aStr = CORBA::string_dup(theTitle);
  aTable->SetTitle(std::string(aStr));
}

Here is the call graph for this function:

Definition at line 482 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theColumn < 1 || theColumn > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  std::vector<int> aSeq;
  SALOMEDS::LongSeq_var CorbaSeq = new SALOMEDS::LongSeq;
  try {
    aSeq = aTable->SortByColumn(theColumn, (SALOMEDSImpl_AttributeTable::SortOrder)sortOrder, 
                                (SALOMEDSImpl_AttributeTable::SortPolicy)sortPolicy);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
  CorbaSeq->length(aSeq.size());
  for (int i = 0; i < aSeq.size(); i++) {
    CorbaSeq[i] = aSeq[i];
  }
  return CorbaSeq._retn(); 
}

Here is the call graph for this function:

Definition at line 455 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theRow < 1 || theRow > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  std::vector<int> aSeq;
  SALOMEDS::LongSeq_var CorbaSeq = new SALOMEDS::LongSeq;
  try {
    aSeq = aTable->SortByRow(theRow, (SALOMEDSImpl_AttributeTable::SortOrder)sortOrder, 
                             (SALOMEDSImpl_AttributeTable::SortPolicy)sortPolicy);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
  CorbaSeq->length(aSeq.size());
  for (int i = 0; i < aSeq.size(); i++) {
    CorbaSeq[i] = aSeq[i];
  }
  return CorbaSeq._retn(); 
}

Here is the call graph for this function:

Definition at line 428 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theColumn < 1 || theColumn > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  std::vector<int> aSeq;
  SALOMEDS::LongSeq_var CorbaSeq = new SALOMEDS::LongSeq;
  try {
    aSeq = aTable->SortColumn(theColumn, (SALOMEDSImpl_AttributeTable::SortOrder)sortOrder, 
                              (SALOMEDSImpl_AttributeTable::SortPolicy)sortPolicy);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
  CorbaSeq->length(aSeq.size());
  for (int i = 0; i < aSeq.size(); i++) {
    CorbaSeq[i] = aSeq[i];
  }
  return CorbaSeq._retn(); 
}

Here is the call graph for this function:

Definition at line 401 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theRow < 1 || theRow > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  std::vector<int> aSeq;
  SALOMEDS::LongSeq_var CorbaSeq = new SALOMEDS::LongSeq;
  try {
    aSeq = aTable->SortRow(theRow, (SALOMEDSImpl_AttributeTable::SortOrder)sortOrder, 
                           (SALOMEDSImpl_AttributeTable::SortPolicy)sortPolicy);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
  CorbaSeq->length(aSeq.size());
  for (int i = 0; i < aSeq.size(); i++) {
    CorbaSeq[i] = aSeq[i];
  }
  return CorbaSeq._retn(); 
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SwapCells ( CORBA::Long  theRow1,
CORBA::Long  theColumn1,
CORBA::Long  theRow2,
CORBA::Long  theColumn2 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 509 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theRow1    < 1 || theRow1    > aTable->GetNbRows())    throw SALOMEDS::AttributeTable::IncorrectIndex();
  if (theColumn1 < 1 || theColumn1 > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  if (theRow2    < 1 || theRow2    > aTable->GetNbRows())    throw SALOMEDS::AttributeTable::IncorrectIndex();
  if (theColumn2 < 1 || theColumn2 > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  try {
    aTable->SwapCells(theRow1, theColumn1, theRow2, theColumn2);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SwapColumns ( CORBA::Long  theColumn1,
CORBA::Long  theColumn2 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 548 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theColumn1 < 1 || theColumn1 > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  if (theColumn2 < 1 || theColumn2 > aTable->GetNbColumns()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  try {
    aTable->SwapColumns(theColumn1, theColumn2);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
}

Here is the call graph for this function:

void SALOMEDS_AttributeTableOfString_i::SwapRows ( CORBA::Long  theRow1,
CORBA::Long  theRow2 
) throw (SALOMEDS::AttributeTable::IncorrectIndex) [virtual]

Definition at line 530 of file SALOMEDS_AttributeTableOfString_i.cxx.

{
  SALOMEDS::Locker lock;
  Unexpect aCatch(ATS_IncorrectIndex);
  CheckLocked();
  SALOMEDSImpl_AttributeTableOfString* aTable = dynamic_cast<SALOMEDSImpl_AttributeTableOfString*>(_impl);
  if (theRow1 < 1 || theRow1 > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();
  if (theRow2 < 1 || theRow2 > aTable->GetNbRows()) throw SALOMEDS::AttributeTable::IncorrectIndex();

  try {
    aTable->SwapRows(theRow1, theRow2);
  }
  catch(...) {
    throw SALOMEDS::AttributeTable::IncorrectIndex();
  }
}

Here is the call graph for this function:


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