Salome HOME
refs #651: wrapping land cover map by Python
[modules/hydro.git] / src / HYDROData / HYDROData_StricklerTable.h
index eae46e33b90f50198b51ffb418c2a6d5ac881438..6c081e1b81794d363625c6cfd251dfabda923904 100644 (file)
@@ -21,6 +21,8 @@
 
 #include <HYDROData_Entity.h>
 
+#include <TColStd_SequenceOfExtendedString.hxx>
+
 class Handle( TDataStd_NamedData );
 
 DEFINE_STANDARD_HANDLE( HYDROData_StricklerTable, HYDROData_Entity )
@@ -33,6 +35,7 @@ protected:
   enum DataTag
   {
     DataTag_Table = HYDROData_Entity::DataTag_First + 100, ///< first tag, to reserve
+    DataTag_AttrName,
   };
 
   HYDRODATA_EXPORT HYDROData_StricklerTable();
@@ -43,14 +46,34 @@ public:
 
   HYDRODATA_EXPORT virtual const ObjectKind GetKind() const;
 
-  HYDRODATA_EXPORT bool Import( const TCollection_AsciiString& theFileName );
-  HYDRODATA_EXPORT bool Export( const TCollection_AsciiString& theFileName );
+  HYDRODATA_EXPORT bool Import( const QString& theFileName );
+  HYDRODATA_EXPORT bool Export( const QString& theFileName );
+
+  HYDRODATA_EXPORT double Get( const QString& theType, double theDefault ) const;
+  HYDRODATA_EXPORT void Set( const QString& theType, double theCoefficient );
+
+  HYDRODATA_EXPORT QStringList GetTypes() const;
+  HYDRODATA_EXPORT void GetCoefficientRange( double& theMin, double& theMax ) const;
+
+  HYDRODATA_EXPORT bool HasType( const QString& theType ) const;
+
+  HYDRODATA_EXPORT void Clear();
+
+  HYDRODATA_EXPORT virtual QStringList DumpToPython( MapOfTreatedObjects& theTreatedObjects ) const;
+
+  HYDRODATA_EXPORT QString GetAttrName() const;
+  HYDRODATA_EXPORT bool    SetAttrName( const QString& ) const;
+
+  HYDRODATA_EXPORT QString GetAttrValue( const QString& theType ) const;
+  HYDRODATA_EXPORT void    SetAttrValue( const QString& theType, const QString& theAttrValue ) const;
+
+  HYDRODATA_EXPORT QString GetType( const QString& theAttrValue ) const;
 
-  double Get( const TCollection_ExtendedString& theType, double theDefault ) const;
-  void Set( const TCollection_ExtendedString& theType, double theCoefficient );
+  HYDRODATA_EXPORT QColor GetColor( const QString& theType ) const;
+  HYDRODATA_EXPORT void SetColor( const QString& theType, const QColor& theColor ) const;
 
 private:
-  Handle( TDataStd_NamedData ) Map() const;
+  Handle(TDataStd_NamedData) Map() const;
 };
 
 #endif