Version: 8.3.0
Main Page
Related Pages
Packages
Data Structures
Files
File List
Globals
SALOME KERNEL Developer
Deprecated List
Packages
Data Structures
Files
File List
idl
src
Basics
Communication
Container
DF
DSC
GenericObj
HDFPersist
KernelHelpers
Launcher
LifeCycleCORBA
Logger
ModuleCatalog
ModuleGenerator
MPIContainer
NamingService
Notification
NOTIFICATION_SWIG
ParallelContainer
Registry
ResourcesManager
SALOMEDS
SALOMEDSClient
SALOMEDSImpl
Test
SALOMEDSImpl_AttributeComment.cxx
SALOMEDSImpl_AttributeComment.hxx
SALOMEDSImpl_AttributeDrawable.cxx
SALOMEDSImpl_AttributeDrawable.hxx
SALOMEDSImpl_AttributeExpandable.cxx
SALOMEDSImpl_AttributeExpandable.hxx
SALOMEDSImpl_AttributeExternalFileDef.cxx
SALOMEDSImpl_AttributeExternalFileDef.hxx
SALOMEDSImpl_AttributeFileType.cxx
SALOMEDSImpl_AttributeFileType.hxx
SALOMEDSImpl_AttributeFlags.cxx
SALOMEDSImpl_AttributeFlags.hxx
SALOMEDSImpl_AttributeGraphic.cxx
SALOMEDSImpl_AttributeGraphic.hxx
SALOMEDSImpl_AttributeInteger.cxx
SALOMEDSImpl_AttributeInteger.hxx
SALOMEDSImpl_AttributeIOR.cxx
SALOMEDSImpl_AttributeIOR.hxx
SALOMEDSImpl_AttributeLocalID.cxx
SALOMEDSImpl_AttributeLocalID.hxx
SALOMEDSImpl_AttributeName.cxx
SALOMEDSImpl_AttributeName.hxx
SALOMEDSImpl_AttributeOpened.cxx
SALOMEDSImpl_AttributeOpened.hxx
SALOMEDSImpl_AttributeParameter.cxx
SALOMEDSImpl_AttributeParameter.hxx
SALOMEDSImpl_AttributePersistentRef.cxx
SALOMEDSImpl_AttributePersistentRef.hxx
SALOMEDSImpl_AttributePixMap.cxx
SALOMEDSImpl_AttributePixMap.hxx
SALOMEDSImpl_AttributePythonObject.cxx
SALOMEDSImpl_AttributePythonObject.hxx
SALOMEDSImpl_AttributeReal.cxx
SALOMEDSImpl_AttributeReal.hxx
SALOMEDSImpl_AttributeReference.cxx
SALOMEDSImpl_AttributeReference.hxx
SALOMEDSImpl_Attributes.hxx
SALOMEDSImpl_AttributeSelectable.cxx
SALOMEDSImpl_AttributeSelectable.hxx
SALOMEDSImpl_AttributeSequenceOfInteger.cxx
SALOMEDSImpl_AttributeSequenceOfInteger.hxx
SALOMEDSImpl_AttributeSequenceOfReal.cxx
SALOMEDSImpl_AttributeSequenceOfReal.hxx
SALOMEDSImpl_AttributeString.cxx
SALOMEDSImpl_AttributeString.hxx
SALOMEDSImpl_AttributeStudyProperties.cxx
SALOMEDSImpl_AttributeStudyProperties.hxx
SALOMEDSImpl_AttributeTable.hxx
SALOMEDSImpl_AttributeTableOfInteger.cxx
SALOMEDSImpl_AttributeTableOfInteger.hxx
SALOMEDSImpl_AttributeTableOfReal.cxx
SALOMEDSImpl_AttributeTableOfReal.hxx
SALOMEDSImpl_AttributeTableOfString.cxx
SALOMEDSImpl_AttributeTableOfString.hxx
SALOMEDSImpl_AttributeTarget.cxx
SALOMEDSImpl_AttributeTarget.hxx
SALOMEDSImpl_AttributeTextColor.cxx
SALOMEDSImpl_AttributeTextColor.hxx
SALOMEDSImpl_AttributeTextHighlightColor.cxx
SALOMEDSImpl_AttributeTextHighlightColor.hxx
SALOMEDSImpl_AttributeTreeNode.cxx
SALOMEDSImpl_AttributeTreeNode.hxx
SALOMEDSImpl_AttributeUserID.cxx
SALOMEDSImpl_AttributeUserID.hxx
SALOMEDSImpl_Callback.cxx
SALOMEDSImpl_Callback.hxx
SALOMEDSImpl_ChildIterator.cxx
SALOMEDSImpl_ChildIterator.hxx
SALOMEDSImpl_ChildNodeIterator.cxx
SALOMEDSImpl_ChildNodeIterator.hxx
SALOMEDSImpl_Defines.hxx
SALOMEDSImpl_Driver.hxx
SALOMEDSImpl_GenericAttribute.cxx
SALOMEDSImpl_GenericAttribute.hxx
SALOMEDSImpl_GenericVariable.cxx
SALOMEDSImpl_GenericVariable.hxx
SALOMEDSImpl_IParameters.cxx
SALOMEDSImpl_IParameters.hxx
SALOMEDSImpl_ScalarVariable.cxx
SALOMEDSImpl_ScalarVariable.hxx
SALOMEDSImpl_SComponent.cxx
SALOMEDSImpl_SComponent.hxx
SALOMEDSImpl_SComponentIterator.cxx
SALOMEDSImpl_SComponentIterator.hxx
SALOMEDSImpl_SObject.cxx
SALOMEDSImpl_SObject.hxx
SALOMEDSImpl_Study.cxx
SALOMEDSImpl_Study.hxx
SALOMEDSImpl_StudyBuilder.cxx
SALOMEDSImpl_StudyBuilder.hxx
SALOMEDSImpl_StudyHandle.cxx
SALOMEDSImpl_StudyHandle.hxx
SALOMEDSImpl_StudyManager.cxx
SALOMEDSImpl_StudyManager.hxx
SALOMEDSImpl_TMPFile.cxx
SALOMEDSImpl_TMPFile.hxx
SALOMEDSImpl_Tool.cxx
SALOMEDSImpl_Tool.hxx
SALOMEDSImpl_UseCaseBuilder.cxx
SALOMEDSImpl_UseCaseBuilder.hxx
SALOMEDSImpl_UseCaseIterator.cxx
SALOMEDSImpl_UseCaseIterator.hxx
testDS.cxx
SALOMELocalTrace
SALOMESDS
SALOMETraceCollector
TestContainer
TestMPIContainer
TOOLSDS
UnitTests
Utils
Globals
SALOMEDSImpl_StudyManager.hxx
Go to the documentation of this file.
1
// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
2
//
3
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5
//
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, or (at your option) any later version.
10
//
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.
15
//
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
19
//
20
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21
//
22
23
// File : SALOMEDSImpl_StudyManager.hxx
24
// Author : Sergey RUIN
25
// Module : SALOME
26
//
27
#ifndef __SALOMEDSImpl_STUDYMANAGER_I_H__
28
#define __SALOMEDSImpl_STUDYMANAGER_I_H__
29
30
#include "
SALOMEDSImpl_Defines.hxx
"
31
32
// std C++ headers
33
#include <sstream>
34
#include <string>
35
#include <vector>
36
37
#include "
DF_Application.hxx
"
38
#include "
SALOMEDSImpl_Study.hxx
"
39
#include "
SALOMEDSImpl_SObject.hxx
"
40
#include "
SALOMEDSImpl_Driver.hxx
"
41
#include "
DF_Attribute.hxx
"
42
#include "
DF_Label.hxx
"
43
#include "
DF_Document.hxx
"
44
45
class
HDFgroup
;
46
47
class
SALOMEDSIMPL_EXPORT
SALOMEDSImpl_StudyManager
48
{
49
50
private
:
51
52
DF_Application
*
_appli
;
53
int
_IDcounter
;
54
DF_Document
*
_clipboard
;
55
std::string
_errorCode
;
56
57
public
:
58
60
SALOMEDSImpl_StudyManager
();
61
63
virtual
~
SALOMEDSImpl_StudyManager
();
64
66
virtual
SALOMEDSImpl_Study
* NewStudy(
const
std::string& study_name);
67
69
virtual
SALOMEDSImpl_Study
* Open(
const
std::string& aStudyUrl);
70
72
virtual
void
Close(
SALOMEDSImpl_Study
* aStudy);
73
75
virtual
bool
Save(
SALOMEDSImpl_Study
* aStudy,
SALOMEDSImpl_DriverFactory
* aFactory,
bool
theMultiFile);
76
77
virtual
bool
SaveASCII(
SALOMEDSImpl_Study
* aStudy,
78
SALOMEDSImpl_DriverFactory
* aFactory,
79
bool
theMultiFile);
80
82
virtual
bool
SaveAs(
const
std::string& aUrl,
83
SALOMEDSImpl_Study
* aStudy,
84
SALOMEDSImpl_DriverFactory
* aFactory,
85
bool
theMultiFile);
86
87
virtual
bool
SaveAsASCII(
const
std::string& aUrl,
88
SALOMEDSImpl_Study
* aStudy,
89
SALOMEDSImpl_DriverFactory
* aFactory,
90
bool
theMultiFile);
91
93
virtual
std::vector<SALOMEDSImpl_Study*> GetOpenStudies();
94
96
virtual
SALOMEDSImpl_Study
* GetStudyByName(
const
std::string& aStudyName) ;
97
99
virtual
SALOMEDSImpl_Study
* GetStudyByID(
int
aStudyID) ;
100
101
102
DF_Document
* GetDocumentOfStudy(
SALOMEDSImpl_Study
* theStudy);
103
104
DF_Document
*
GetClipboard
() {
return
_clipboard; }
105
106
bool
CopyLabel(
SALOMEDSImpl_Study
* theSourceStudy,
107
SALOMEDSImpl_Driver
* theEngine,
108
const
int
theSourceStartDepth,
109
const
DF_Label
& theSource,
110
const
DF_Label
& theDestinationMain);
111
112
DF_Label
PasteLabel(
SALOMEDSImpl_Study
* theDestinationStudy,
113
SALOMEDSImpl_Driver
* theEngine,
114
const
DF_Label
& theSource,
115
const
DF_Label
& theDestinationStart,
116
const
int
theCopiedStudyID,
117
const
bool
isFirstElement);
118
119
virtual
bool
CanCopy(
const
SALOMEDSImpl_SObject
& theObject,
SALOMEDSImpl_Driver
* Engine);
120
virtual
bool
Copy(
const
SALOMEDSImpl_SObject
& theObject,
SALOMEDSImpl_Driver
* Engine);
121
virtual
bool
CanPaste(
const
SALOMEDSImpl_SObject
& theObject,
SALOMEDSImpl_Driver
* Engine);
122
virtual
SALOMEDSImpl_SObject
Paste(
const
SALOMEDSImpl_SObject
& theObject,
SALOMEDSImpl_Driver
* Engine);
123
124
// _SaveAs private function called by Save and SaveAs
125
virtual
bool
Impl_SaveAs(
const
std::string& aUrl,
126
SALOMEDSImpl_Study
* aStudy,
127
SALOMEDSImpl_DriverFactory
* aFactory,
128
bool
theMultiFile,
129
bool
theASCII);
130
131
// _SaveObject private function called by _SaveAs
132
virtual
bool
Impl_SaveObject(
const
SALOMEDSImpl_SObject
& SC,
HDFgroup
*hdf_group_datatype);
133
134
// _SubstituteSlash function called by Open and GetStudyByName
135
virtual
std::string Impl_SubstituteSlash(
const
std::string& aUrl);
136
137
virtual
bool
Impl_SaveProperties(
SALOMEDSImpl_Study
* aStudy,
HDFgroup
*hdf_group);
138
139
std::string
GetErrorCode
() {
return
_errorCode; }
140
virtual
bool
IsError
() {
return
_errorCode !=
""
; }
141
142
};
143
144
#endif
src
SALOMEDSImpl
SALOMEDSImpl_StudyManager.hxx
Copyright © 2007-2017 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS