1 // Copyright (C) 2007-2008 CEA/DEN, EDF R&D, OPEN CASCADE
3 // Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4 // CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
6 // This library is free software; you can redistribute it and/or
7 // modify it under the terms of the GNU Lesser General Public
8 // License as published by the Free Software Foundation; either
9 // version 2.1 of the License.
11 // This library is distributed in the hope that it will be useful,
12 // but WITHOUT ANY WARRANTY; without even the implied warranty of
13 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 // Lesser General Public License for more details.
16 // You should have received a copy of the GNU Lesser General Public
17 // License along with this library; if not, write to the Free Software
18 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 // VISU OBJECT : interactive object for VISU entities implementation
23 // File : VISU_ResultUtils.hh
24 // Author : Alexey PETROV
27 #ifndef __VISU_RESULT_UTILS_H__
28 #define __VISU_RESULT_UTILS_H__
30 #include "VISU_Result_i.hh"
31 #include "SALOME_Event.h"
37 //----------------------------------------------------------------------------
38 struct TUpdateObjBrowser: public SALOME_Event
41 CORBA::Boolean* myIsDone;
42 TUpdateObjBrowser(const int theStudyId, CORBA::Boolean* theIsDone);
50 //----------------------------------------------------------------------------
55 TResultManager(Result_i* theResult);
61 //----------------------------------------------------------------------------
62 struct TTransactionManager
64 _PTR(StudyBuilder) myStudyBuilder;
66 TTransactionManager(_PTR(Study) theStudyDocument);
68 ~TTransactionManager();
72 //----------------------------------------------------------------------------
74 GenerateName(const std::string& theName);
77 //----------------------------------------------------------------------------
79 SplitName(const std::string& theName,
81 std::string& theSuffix,
82 char theDelimeter = ':');
85 //----------------------------------------------------------------------------
87 MakeFileName(const std::string& theName,
88 const void* thePointer);
91 //----------------------------------------------------------------------------
93 BuildEntities(Result_i* theResult,
94 Result_i::PInput theInput,
95 CORBA::Boolean* theIsDone,
96 const std::string& theResultEntry,
97 CORBA::Boolean theIsAtOnce,
98 CORBA::Boolean theIsBuildGroups,
99 CORBA::Boolean theIsBuildFields,
100 CORBA::Boolean theIsBuildParts,
101 _PTR(Study) theStudy);
104 //----------------------------------------------------------------------------
106 BuildGroups(Result_i* theResult,
107 Result_i::PInput theInput,
108 CORBA::Boolean* theIsDone,
109 CORBA::Boolean theIsBuild,
110 CORBA::Boolean theIsAtOnce,
111 _PTR(Study) theStudy);
114 //----------------------------------------------------------------------------
116 BuildFields(Result_i* theResult,
117 Result_i::PInput theInput,
118 CORBA::Boolean* theIsDone,
119 CORBA::Boolean theIsBuild,
120 CORBA::Boolean theIsAtOnce,
121 _PTR(Study) theStudy);
124 //----------------------------------------------------------------------------
126 BuildMinMax(Result_i* theResult,
127 Result_i::PInput theInput,
128 CORBA::Boolean* theIsDone,
129 CORBA::Boolean theIsBuild);
132 //----------------------------------------------------------------------------
134 BuildFieldDataTree(Result_i* theResult,
135 Result_i::PInput theInput,
136 CORBA::Boolean* theIsFieldsDone,
137 CORBA::Boolean theIsBuildFields,
138 CORBA::Boolean* theIsMinMaxDone,
139 CORBA::Boolean theIsBuildMinMax,
140 _PTR(Study) theStudy);
142 //----------------------------------------------------------------------------
144 RemoveFile(const std::string& theFileName,
145 bool theRemoveEmptyDir = true);
147 //----------------------------------------------------------------------------
149 CopyFile(const std::string& theSourceFileName,
150 const std::string& theTargetFileName);
152 //----------------------------------------------------------------------------
156 #endif // __VISU_RESULT_UTILS_H__