Salome HOME
make GetLength const
[modules/smesh.git] / src / SMESH / SMESH_LocalLength.hxx
index 147890c164b3c0793e602b0be084259f11f1974f..7cb47251e1663d1264a28f408444ab7ffc4228c4 100644 (file)
 #include "SMESH_Hypothesis.hxx"
 #include "Utils_SALOME_Exception.hxx"
 
-class SMESH_LocalLength:
-  public SMESH_Hypothesis
+class SMESH_LocalLength:public SMESH_Hypothesis
 {
-public:
-  SMESH_LocalLength(int hypId, int studyId, SMESH_Gen* gen);
-  virtual ~SMESH_LocalLength();
+  public:
+       SMESH_LocalLength(int hypId, int studyId, SMESH_Gen * gen);
+         virtual ~ SMESH_LocalLength();
 
-  void SetLength(double length)
-    throw (SALOME_Exception);
+       void SetLength(double length) throw(SALOME_Exception);
 
-  double GetLength();
+       double GetLength() const;
 
-  virtual ostream & SaveTo(ostream & save);
-  virtual istream & LoadFrom(istream & load);
-  friend ostream & operator << (ostream & save, SMESH_LocalLength & hyp);
-  friend istream & operator >> (istream & load, SMESH_LocalLength & hyp);
+       virtual ostream & SaveTo(ostream & save);
+       virtual istream & LoadFrom(istream & load);
+       friend ostream & operator <<(ostream & save, SMESH_LocalLength & hyp);
+       friend istream & operator >>(istream & load, SMESH_LocalLength & hyp);
 
-protected:
-  double _length;
+  protected:
+       double _length;
 };
 
 #endif