Salome HOME
make GetLength const
[modules/smesh.git] / src / SMESH / SMESH_LocalLength.hxx
index 147890c..7cb4725 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