28 #ifndef _SALOMEDSImpl_AttributeTableOfInteger_HeaderFile
29 #define _SALOMEDSImpl_AttributeTableOfInteger_HeaderFile
47 virtual std::string
Save();
48 virtual void Load(
const std::string&);
50 static const std::string& GetID();
55 void SetNbColumns(
const int theNbColumns);
56 void SetTitle(
const std::string& theTitle);
57 std::string GetTitle()
const;
58 void SetRowData(
const int theRow,
const std::vector<int>& theData);
59 std::vector<int> GetRowData(
const int theRow);
60 void SetRowTitle(
const int theRow,
const std::string& theTitle);
61 void SetRowUnit(
const int theRow,
const std::string& theUnit);
62 std::string GetRowUnit(
const int theRow)
const;
63 void SetRowUnits(
const std::vector<std::string>& theUnits);
64 std::vector<std::string> GetRowUnits();
65 void SetRowTitles(
const std::vector<std::string>& theTitles);
66 std::vector<std::string> GetRowTitles();
67 std::string GetRowTitle(
const int theRow)
const;
68 void SetColumnData(
const int theColumn,
const std::vector<int>& theData);
69 std::vector<int> GetColumnData(
const int theColumn);
70 void SetColumnTitle(
const int theColumn,
const std::string& theTitle);
71 std::string GetColumnTitle(
const int theColumn)
const;
72 void SetColumnTitles(
const std::vector<std::string>& theTitles);
73 std::vector<std::string> GetColumnTitles();
74 int GetNbRows()
const;
75 int GetNbColumns()
const;
77 void PutValue(
const int theValue,
const int theRow,
const int theColumn);
78 bool HasValue(
const int theRow,
const int theColumn);
79 int GetValue(
const int theRow,
const int theColumn);
80 void RemoveValue(
const int theRow,
const int theColumn);
81 const std::string&
ID()
const;
86 std::vector<int> GetSetRowIndices(
const int theRow);
87 std::vector<int> GetSetColumnIndices(
const int theColumn);
90 std::vector<int> SortColumn(
const int theColumn,
SortOrder sortOrder,
SortPolicy sortPolicy);
92 std::vector<int> SortByColumn(
const int theColumn,
SortOrder sortOrder,
SortPolicy sortPolicy);
94 void SwapCells(
const int theRow1,
const int theColumn1,
const int theRow2,
const int theColumn2);
95 void SwapRows(
const int theRow1,
const int theRow2);
96 void SwapColumns(
const int theColumn1,
const int theColumn2);