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_AttributeTableOfReal_i.hxx
8 // Author : Michael Ponikarov
12 #ifndef SALOMEDS_AttributeTableOfReal_i_HeaderFile
13 #define SALOMEDS_AttributeTableOfReal_i_HeaderFile
16 #include "SALOMEDS_TableOfRealAttribute.hxx"
17 #include <SALOMEconfig.h>
18 #include CORBA_SERVER_HEADER(SALOMEDS_Attributes)
19 #include "SALOMEDS_GenericAttribute_i.hxx"
21 class SALOMEDS_AttributeTableOfReal_i: public virtual POA_SALOMEDS::AttributeTableOfReal,
22 public virtual SALOMEDS_GenericAttribute_i {
26 SALOMEDS_AttributeTableOfReal_i(const Handle(SALOMEDS_TableOfRealAttribute)& theTableOfRealAttr,
29 _myOrb = CORBA::ORB::_duplicate(orb);
30 _myAttr = theTableOfRealAttr;
32 ~SALOMEDS_AttributeTableOfReal_i() {};
34 virtual void SetTitle(const char* theTitle);
35 virtual char* GetTitle();
36 virtual void SetRowTitle(CORBA::Long theIndex, const char* theTitle)
37 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
38 virtual void SetRowTitles(const SALOMEDS::StringSeq& theTitles)
39 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
40 virtual SALOMEDS::StringSeq* GetRowTitles();
41 virtual void SetColumnTitle(CORBA::Long theIndex, const char* theTitle)
42 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
43 virtual void SetColumnTitles(const SALOMEDS::StringSeq& theTitles)
44 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
45 virtual SALOMEDS::StringSeq* GetColumnTitles();
47 virtual void SetRowUnit(CORBA::Long theIndex, const char* theUnit)
48 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
49 virtual void SetRowUnits(const SALOMEDS::StringSeq& theUnits)
50 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
51 virtual SALOMEDS::StringSeq* GetRowUnits();
53 virtual CORBA::Long GetNbRows();
54 virtual CORBA::Long GetNbColumns();
55 virtual void AddRow(const SALOMEDS::DoubleSeq& theData)
56 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
57 virtual void SetRow(CORBA::Long theRow, const SALOMEDS::DoubleSeq& theData)
58 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
59 virtual SALOMEDS::DoubleSeq* GetRow(CORBA::Long theRow)
60 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
61 virtual void AddColumn(const SALOMEDS::DoubleSeq& theData)
62 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength);
63 virtual void SetColumn(CORBA::Long theColumn, const SALOMEDS::DoubleSeq& theData)
64 throw (SALOMEDS::AttributeTableOfReal::IncorrectArgumentLength, SALOMEDS::AttributeTableOfReal::IncorrectIndex);
65 virtual SALOMEDS::DoubleSeq* GetColumn(CORBA::Long theColumn)
66 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
67 virtual void PutValue(CORBA::Double theValue, CORBA::Long theRow, CORBA::Long theColumn)
68 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
69 virtual CORBA::Boolean HasValue(CORBA::Long theRow, CORBA::Long theColumn);
70 virtual CORBA::Double GetValue(CORBA::Long theRow, CORBA::Long theColumn)
71 throw (SALOMEDS::AttributeTableOfReal::IncorrectIndex);
73 virtual SALOMEDS::LongSeq* GetRowSetIndices(CORBA::Long theRow);
74 virtual void SetNbColumns(CORBA::Long theNbColumns);
76 virtual bool ReadFromFile(const SALOMEDS::TMPFile& theStream);
77 virtual SALOMEDS::TMPFile* SaveToFile();