X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FSMESH_NoteBook.hxx;h=bd8f4297c873727c4ee40d9ed9f03963fba23863;hb=882884f6791da81b5ef562741458bc542c45edaf;hp=4bc395586027b3aa0dd79d5ae817c5665bc0306a;hpb=df96082091bb50198d6a14dad18b7b61726bcf44;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/SMESH_NoteBook.hxx b/src/SMESH_I/SMESH_NoteBook.hxx index 4bc395586..bd8f4297c 100644 --- a/src/SMESH_I/SMESH_NoteBook.hxx +++ b/src/SMESH_I/SMESH_NoteBook.hxx @@ -26,26 +26,79 @@ #include #include + +class _pyCommand; #include #include +typedef std::vector TState; +typedef std::vector TAllStates; +typedef TCollection_AsciiString _pyID; + +class ObjectStates{ + +public: + + ObjectStates(TCollection_AsciiString theType); + ~ObjectStates(); + + void AddState(const TState &theState); + + TState GetCurrectState() const; + TAllStates GetAllStates() const; + void IncrementState(); + TCollection_AsciiString GetObjectType() const; + + + +private: + TCollection_AsciiString _type; + TAllStates _states; + int _dumpstate; +}; + +class LayerDistributionStates : public ObjectStates +{ +public: + typedef std::map TDistributionMap; + LayerDistributionStates(); + ~LayerDistributionStates(); + + void AddDistribution(const TCollection_AsciiString& theDistribution); + bool HasDistribution(const TCollection_AsciiString& theDistribution) const; + + bool SetDistributionType(const TCollection_AsciiString& theDistribution, + const TCollection_AsciiString& theType); + TCollection_AsciiString GetDistributionType(const TCollection_AsciiString& theDistribution) const; + +private: + + TDistributionMap _distributions; +}; + class SMESH_NoteBook { public: + typedef std::map TVariablesMap; + typedef std::map TMeshEditorMap; SMESH_NoteBook(); ~SMESH_NoteBook(); - TCollection_AsciiString ReplaceVariables(const TCollection_AsciiString& theString) const; - - typedef std::map > TVariablesMap; + void ReplaceVariables(); + + void AddCommand(const TCollection_AsciiString& theString); + TCollection_AsciiString GetResultScript() const; private: void InitObjectMap(); - std::vector ParseVariables(const std::string& theVariables, const char sep) const; + void ProcessLayerDistribution(); private: + TVariablesMap _objectMap; + std::vector _commands; + TMeshEditorMap myMeshEditors; }; #endif //SMESH_NoteBook_HeaderFile