28 #ifndef _SALOMEDSImpl_AttributeTableOfString_HeaderFile
29 #define _SALOMEDSImpl_AttributeTableOfString_HeaderFile
46 virtual std::string
Save();
47 virtual void Load(
const std::string&);
49 static const std::string& GetID();
53 void SetNbColumns(
const int theNbColumns);
54 void SetTitle(
const std::string& theTitle);
55 std::string GetTitle()
const;
56 void SetRowData(
const int theRow,
const std::vector<std::string>& theData);
57 std::vector<std::string> GetRowData(
const int theRow);
58 void SetRowTitle(
const int theRow,
const std::string& theTitle);
59 void SetRowUnit(
const int theRow,
const std::string& theUnit);
60 std::string GetRowUnit(
const int theRow)
const;
61 void SetRowUnits(
const std::vector<std::string>& theUnits);
62 std::vector<std::string> GetRowUnits();
63 void SetRowTitles(
const std::vector<std::string>& theTitles);
64 std::vector<std::string> GetRowTitles();
65 std::string GetRowTitle(
const int theRow)
const;
66 void SetColumnData(
const int theColumn,
const std::vector<std::string>& theData);
67 std::vector<std::string> GetColumnData(
const int theColumn);
68 void SetColumnTitle(
const int theColumn,
const std::string& theTitle);
69 std::string GetColumnTitle(
const int theColumn)
const;
70 void SetColumnTitles(
const std::vector<std::string>& theTitles);
71 std::vector<std::string> GetColumnTitles();
72 int GetNbRows()
const;
73 int GetNbColumns()
const;
75 void PutValue(
const std::string& theValue,
const int theRow,
const int theColumn);
76 bool HasValue(
const int theRow,
const int theColumn);
77 std::string GetValue(
const int theRow,
const int theColumn);
78 void RemoveValue(
const int theRow,
const int theColumn);
79 const std::string&
ID()
const;
84 std::vector<int> GetSetRowIndices(
const int theRow);
85 std::vector<int> GetSetColumnIndices(
const int theColumn);
88 std::vector<int> SortColumn(
const int theColumn,
SortOrder sortOrder,
SortPolicy sortPolicy);
90 std::vector<int> SortByColumn(
const int theColumn,
SortOrder sortOrder,
SortPolicy sortPolicy);
92 void SwapCells(
const int theRow1,
const int theColumn1,
const int theRow2,
const int theColumn2);
93 void SwapRows(
const int theRow1,
const int theRow2);
94 void SwapColumns(
const int theColumn1,
const int theColumn2);
#define SALOMEDSIMPL_EXPORT
Definition: SALOMEDSImpl_Defines.hxx:34
Definition: DF_Attribute.hxx:30
virtual void Restore(DF_Attribute *theAttribute)=0
virtual std::string Save()
Definition: DF_Attribute.hxx:47
virtual void Load(const std::string &)
Definition: DF_Attribute.hxx:48
virtual DF_Attribute * NewEmpty() const =0
virtual void Paste(DF_Attribute *theIntoAttribute)=0
Definition: DF_Label.hxx:65
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:43
std::vector< std::string > myRows
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:101
int myNbColumns
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:104
int myNbRows
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:103
std::map< int, std::string > myTable
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:99
~SALOMEDSImpl_AttributeTableOfString()
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:96
std::string myTitle
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:100
std::vector< std::string > myCols
Definition: SALOMEDSImpl_AttributeTableOfString.hxx:102
Definition: SALOMEDSImpl_AttributeTable.hxx:29
SortPolicy
Sort policy (specifies how empty cells are taken into account when sorting)
Definition: SALOMEDSImpl_AttributeTable.hxx:38
SortOrder
Sort order.
Definition: SALOMEDSImpl_AttributeTable.hxx:32
Definition: SALOMEDSImpl_GenericAttribute.hxx:39
string ID
Main identifier of an object in SALOME application.
Definition: SALOMEDS.idl:48