28 #ifndef _SALOMEDSImpl_AttributeTableOfReal_HeaderFile
29 #define _SALOMEDSImpl_AttributeTableOfReal_HeaderFile
46 virtual std::string
Save();
47 virtual void Load(
const std::string&);
49 static const std::string& GetID();
54 void SetNbColumns(
const int theNbColumns);
55 void SetTitle(
const std::string& theTitle);
56 std::string GetTitle()
const;
57 void SetRowData(
const int theRow,
const std::vector<double>& theData);
58 std::vector<double> GetRowData(
const int theRow);
59 void SetRowTitle(
const int theRow,
const std::string& theTitle);
60 void SetRowUnit(
const int theRow,
const std::string& theUnit);
61 std::string GetRowUnit(
const int theRow)
const;
62 void SetRowUnits(
const std::vector<std::string>& theUnits);
63 std::vector<std::string> GetRowUnits();
64 void SetRowTitles(
const std::vector<std::string>& theTitles);
65 std::vector<std::string> GetRowTitles();
66 std::string GetRowTitle(
const int theRow)
const;
67 void SetColumnData(
const int theColumn,
const std::vector<double>& theData);
68 std::vector<double> GetColumnData(
const int theColumn);
69 void SetColumnTitle(
const int theColumn,
const std::string& theTitle);
70 void SetColumnTitles(
const std::vector<std::string>& theTitles);
71 std::vector<std::string> GetColumnTitles();
72 std::string GetColumnTitle(
const int theColumn)
const;
73 int GetNbRows()
const;
74 int GetNbColumns()
const;
76 void PutValue(
const double& theValue,
const int theRow,
const int theColumn);
77 bool HasValue(
const int theRow,
const int theColumn);
78 double GetValue(
const int theRow,
const int theColumn);
79 void RemoveValue(
const int theRow,
const int theColumn);
80 const std::string&
ID()
const;
85 std::vector<int> GetSetRowIndices(
const int theRow);
86 std::vector<int> GetSetColumnIndices(
const int theColumn);
89 std::vector<int> SortColumn(
const int theColumn,
SortOrder sortOrder,
SortPolicy sortPolicy);
91 std::vector<int> SortByColumn(
const int theColumn,
SortOrder sortOrder,
SortPolicy sortPolicy);
93 void SwapCells(
const int theRow1,
const int theColumn1,
const int theRow2,
const int theColumn2);
94 void SwapRows(
const int theRow1,
const int theRow2);
95 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_AttributeTableOfReal.hxx:43
std::map< int, double > myTable
Definition: SALOMEDSImpl_AttributeTableOfReal.hxx:100
std::vector< std::string > myRows
Definition: SALOMEDSImpl_AttributeTableOfReal.hxx:102
std::string myTitle
Definition: SALOMEDSImpl_AttributeTableOfReal.hxx:101
int myNbColumns
Definition: SALOMEDSImpl_AttributeTableOfReal.hxx:105
~SALOMEDSImpl_AttributeTableOfReal()
Definition: SALOMEDSImpl_AttributeTableOfReal.hxx:97
int myNbRows
Definition: SALOMEDSImpl_AttributeTableOfReal.hxx:104
std::vector< std::string > myCols
Definition: SALOMEDSImpl_AttributeTableOfReal.hxx:103
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