Version: 9.16.0
VisitorSaveState.hxx
Go to the documentation of this file.
1// Copyright (C) 2006-2026 CEA, EDF
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20#ifndef __VISITOR_SAVESTATE_HXX__
21#define __VISITOR_SAVESTATE_HXX__
22
24#include "Visitor.hxx"
25#include "Exception.hxx"
26
27#include <fstream>
28#include <string>
29#include <map>
30
31namespace YACS
32{
33 namespace ENGINE
34 {
36 {
37 public:
39 virtual ~VisitorSaveState();
40 void openFileDump(const std::string& xmlDump) ;
41 void closeFileDump();
42 virtual void visitBloc(Bloc *node);
43 virtual void visitElementaryNode(ElementaryNode *node);
44 void visitForEachLoop(ForEachLoop *node) override;
45 void visitForEachLoopDyn(ForEachLoopDyn *node) override;
46 virtual void visitOptimizerLoop(OptimizerLoop *node);
47 virtual void visitDynParaLoop(DynParaLoop *node);
48 virtual void visitForLoop(ForLoop *node);
49 virtual void visitInlineNode(InlineNode *node);
50 virtual void visitInlineFuncNode(InlineFuncNode *node);
51 virtual void visitLoop(Loop *node);
52 virtual void visitProc(Proc *node);
53 virtual void visitServiceNode(ServiceNode *node);
54 virtual void visitServerNode(ServerNode *node);
55 virtual void visitServiceInlineNode(ServiceInlineNode *node);
56 virtual void visitSwitch(Switch *node);
57 virtual void visitWhileLoop(WhileLoop *node);
58 virtual void visitPresetNode(DataNode *node);
59 virtual void visitOutNode(DataNode *node);
60 virtual void visitStudyInNode(DataNode *node);
61 virtual void visitStudyOutNode(DataNode *node);
62
63 protected:
64 std::ofstream _out;
65 std::map<int, std::string> _nodeStateName;
66 };
67 }
68}
69#endif
#define YACSLIBENGINE_EXPORT
Composed node to group elementary and composed nodes.
Definition: Bloc.hxx:36
Base class for all composed nodes.
Class for data parameters specification.
Definition: DataNode.hxx:38
Base class for dynamically (fully or semifully) built graphs.
Definition: DynParaLoop.hxx:41
Base class for all calculation nodes.
Loop node for parametric calculation.
Class for for loop node.
Definition: ForLoop.hxx:33
Class for calculation node (function) inlined (and executed) in the schema.
Definition: InlineNode.hxx:93
Class for calculation node (script) inlined (and executed) in the schema.
Definition: InlineNode.hxx:44
Base class for loop node.
Definition: Loop.hxx:147
class to build optimization loops
Base class for all schema objects.
Definition: Proc.hxx:44
Class for calculation node associated with a component service.
Definition: ServiceNode.hxx:35
Control node that emulates the C switch.
Definition: Switch.hxx:85
std::map< int, std::string > _nodeStateName
Class for a while loop.
Definition: WhileLoop.hxx:39