1 // SALOME SALOMEDS : data structure of SALOME and sources of Salome data server
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : SALOMEDS_AttributeTableOfInteger_i.hxx
8 // Author : Michael Ponikarov
12 #ifndef SALOMEDS_AttributeTableOfInteger_i_HeaderFile
13 #define SALOMEDS_AttributeTableOfInteger_i_HeaderFile
15 #include "SALOMEDS_TableOfIntegerAttribute.hxx"
16 #include "SALOMEDS_GenericAttribute_i.hxx"
19 #include <SALOMEconfig.h>
20 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
22 DEFINE_DERIVED_ATTR(AttributeTableOfInteger,SALOMEDS_TableOfIntegerAttribute,true);
24 class SALOMEDS_AttributeTableOfInteger_i:
25 public virtual POA_SALOMEDS::AttributeTableOfInteger,
26 public virtual SALOMEDS_TAttributeTableOfInteger_i
28 DEFINE_DERIVED_ATTR_METH_DEFAULT(AttributeTableOfInteger,SALOMEDS_TableOfIntegerAttribute);
30 virtual void SetTitle(const char* theTitle);
31 virtual char* GetTitle();
32 virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
33 throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
34 virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
35 throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
36 virtual SALOMEDS::StringSeq* GetRowTitles();
37 virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
38 throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
39 virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
40 throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
41 virtual SALOMEDS::StringSeq* GetColumnTitles();
43 virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
44 throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
45 virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
46 throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
47 virtual SALOMEDS::StringSeq* GetRowUnits();
49 virtual CORBA::Long GetNbRows();
50 virtual CORBA::Long GetNbColumns();
51 virtual void AddRow(const SALOMEDS::LongSeq& theData)
52 throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
53 virtual void SetRow(CORBA::Long theRow, const SALOMEDS::LongSeq& theData)
54 throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
55 virtual SALOMEDS::LongSeq* GetRow(CORBA::Long theRow)
56 throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
57 virtual void AddColumn(const SALOMEDS::LongSeq& theData)
58 throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
59 virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::LongSeq& theData)
60 throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
61 virtual SALOMEDS::LongSeq* GetColumn(CORBA::Long theColumn)
62 throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
63 virtual void PutValue(CORBA::Long theValue, CORBA::Long theRow, CORBA::Long theColumn)
64 throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
65 virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
66 virtual CORBA::Long GetValue(CORBA::Long theRow, CORBA::Long theColumn)
67 throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
69 virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
70 virtual void SetNbColumns(CORBA::Long theNbColumns);
72 virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
73 virtual SALOMEDS::TMPFile* SaveToFile();
75 virtual char* Store();
76 virtual void Restore(const char*);