Salome HOME
PR: mergefrom_PAL_OCC_21Oct04
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_AttributeTableOfInteger_i.hxx
1 //  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
2 //
3 //  Copyright (C) 2003  CEA/DEN, EDF R&D
4 //
5 //
6 //
7 //  File   : SALOMEDS_AttributeTableOfInteger_i.hxx
8 //  Author : Michael Ponikarov
9 //  Module : SALOME
10 //  $Header$
11
12 #ifndef SALOMEDS_AttributeTableOfInteger_i_HeaderFile
13 #define SALOMEDS_AttributeTableOfInteger_i_HeaderFile
14
15 // IDL headers
16 #include "SALOMEDS_TableOfIntegerAttribute.hxx"
17 #include <SALOMEconfig.h>
18 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
19 #include "SALOMEDS_GenericAttribute_i.hxx"
20
21 class SALOMEDS_AttributeTableOfInteger_i: public virtual POA_SALOMEDS::AttributeTableOfInteger,
22   public virtual SALOMEDS_GenericAttribute_i {
23     
24 public:
25   
26   SALOMEDS_AttributeTableOfInteger_i(const Handle(SALOMEDS_TableOfIntegerAttribute)& theTableOfIntegerAttr, 
27                                      CORBA::ORB_ptr orb) 
28   {
29     _myOrb = CORBA::ORB::_duplicate(orb);
30     _myAttr = theTableOfIntegerAttr;
31   };
32   ~SALOMEDS_AttributeTableOfInteger_i() {};
33
34   virtual void SetTitle(const char* theTitle);
35   virtual char* GetTitle();
36   virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
37     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
38   virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
39     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
40   virtual SALOMEDS::StringSeq* GetRowTitles();
41   virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
42     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
43   virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
44     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
45   virtual SALOMEDS::StringSeq* GetColumnTitles();
46
47   virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
48     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
49   virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
50     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
51   virtual SALOMEDS::StringSeq* GetRowUnits();
52
53   virtual CORBA::Long GetNbRows();
54   virtual CORBA::Long GetNbColumns();
55   virtual void AddRow(const SALOMEDS::LongSeq& theData)
56     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
57   virtual void SetRow(CORBA::Long theRow, const SALOMEDS::LongSeq& theData)
58     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
59   virtual SALOMEDS::LongSeq* GetRow(CORBA::Long theRow)
60     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
61   virtual void AddColumn(const SALOMEDS::LongSeq& theData)
62     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength);
63   virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::LongSeq& theData)
64     throw (SALOMEDS::AttributeTableOfInteger::IncorrectArgumentLength, SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
65   virtual SALOMEDS::LongSeq* GetColumn(CORBA::Long theColumn)
66     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
67   virtual void PutValue(CORBA::Long theValue, CORBA::Long theRow, CORBA::Long theColumn)
68     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
69   virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
70   virtual CORBA::Long GetValue(CORBA::Long theRow, CORBA::Long theColumn)
71     throw (SALOMEDS::AttributeTableOfInteger::IncorrectIndex);
72
73   virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
74   virtual void SetNbColumns(CORBA::Long theNbColumns);
75
76   virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
77   virtual SALOMEDS::TMPFile* SaveToFile();
78
79   virtual char* Store();
80   virtual void Restore(const char*);
81
82 };
83
84 #endif