/usr/include/salome/SALOMEDS_Study_i.hxx is in salome-kernel-dev 6.5.0-7ubuntu2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 | // Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
// License as published by the Free Software Foundation; either
// version 2.1 of the License.
//
// This library is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
// Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public
// License along with this library; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
//
// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
//
// File : SALOMEDS_Study_i.hxx
// Author : Sergey RUIN
// Module : SALOME
//
#ifndef __SALOMEDS_STUDY_I_H__
#define __SALOMEDS_STUDY_I_H__
// std C++ headers
#include <iostream>
// IDL headers
#include <SALOMEconfig.h>
#include CORBA_SERVER_HEADER(SALOME_GenericObj)
#include CORBA_SERVER_HEADER(SALOMEDS)
#include <stdio.h>
//SALOMEDS headers
#include "SALOMEDS_SComponentIterator_i.hxx"
#include "SALOMEDS_StudyBuilder_i.hxx"
#include "SALOMEDS_SObject_i.hxx"
#include "SALOMEDS_UseCaseBuilder_i.hxx"
#include "SALOMEDSImpl_Study.hxx"
#include "SALOMEDSImpl_AttributeIOR.hxx"
class Notifier;
class Standard_EXPORT SALOMEDS_Study_i: public POA_SALOMEDS::Study
{
private:
CORBA::ORB_var _orb;
SALOMEDSImpl_Study* _impl;
SALOMEDS_StudyBuilder_i* _builder;
static std::map<SALOMEDSImpl_Study*, SALOMEDS_Study_i*> _mapOfStudies;
Notifier* _notifier;
public:
//! standard constructor
SALOMEDS_Study_i(SALOMEDSImpl_Study*, CORBA::ORB_ptr);
//! standard destructor
virtual ~SALOMEDS_Study_i();
//! method to Get persistent reference of study (idem URL())
/*!
\sa URL()
\return char* arguments, the persistent reference of the study
*/
virtual char* GetPersistentReference();
//! method to Get transient reference of study
/*!
\return char* arguments, the transient reference of the study
*/
virtual char* GetTransientReference();
//! method to detect if a study is empty
/*!
\return bool arguments, true if study is empty
*/
virtual CORBA::Boolean IsEmpty();
//! method to Find a Component with ComponentDataType = aComponentName
/*!
\param aComponentName char* arguments
\return SComponent_ptr arguments, the component found
*/
virtual SALOMEDS::SComponent_ptr FindComponent (const char* aComponentName);
//! method to Find a Component Find a Component from it's ID
/*!
\param aComponentID char* arguments
\return SComponent_ptr arguments, the component found
*/
virtual SALOMEDS::SComponent_ptr FindComponentID(const char* aComponentID);
//! method to Find an Object with SALOMEDS::Name = anObjectName
/*!
\param anObjectName char* arguments
\return SObject_ptr arguments, the object found
*/
virtual SALOMEDS::SObject_ptr FindObject(const char* anObjectName);
//! method to Find Object(s) with SALOMEDS::Name = anObjectName in a component with ComponentDataType = aComponentName
/*!
\param anObjectName char* arguments
\param aComponentName char* arguments
\return ListOfSObject_ptr arguments, a list of objects found
*/
virtual SALOMEDS::Study::ListOfSObject* FindObjectByName( const char* anObjectName, const char* aComponentName ) ;
//! method to Find an Object with ID = anObjectID
/*!
\param anObjectID char* arguments
\return SObject_ptr arguments, the object found
*/
virtual SALOMEDS::SObject_ptr FindObjectID(const char* anObjectID);
//! method to Create an Object with ID = anObjectID
/*!
\param anObjectID char* arguments
\return SObject_ptr arguments, the object found
*/
virtual SALOMEDS::SObject_ptr CreateObjectID(const char* anObjectID);
//! method to Find an Object with ID = anObjectIOR
/*!
\param anObjectIOR char* arguments
\return SObject_ptr arguments, the object found
*/
virtual SALOMEDS::SObject_ptr FindObjectIOR(const char* anObjectIOR);
//! method to Find an Object by its path
/*!
\param thePath char* arguments
\return SObject_ptr arguments, the object found
*/
virtual SALOMEDS::SObject_ptr FindObjectByPath(const char* thePath);
//! method to get a path of SObject
/*!
\param aSO SObject_ptr arguments
\return char* arguments, the path of the SObject
*/
virtual char* GetObjectPath(CORBA::Object_ptr theObject);
//! method to set a context: root ('/') is UserData component
/*!
*/
virtual void SetContext(const char* thePath);
//! method to get a context
/*!
*/
virtual char* GetContext();
//! method to get all object names in the given context (or in the current context, if 'theContext' is empty)
/*!
*/
virtual SALOMEDS::ListOfStrings* GetObjectNames(const char* theContext);
//! method to get all directory names in the given context (or in the current context, if 'theContext' is empty)
/*!
*/
virtual SALOMEDS::ListOfStrings* GetDirectoryNames(const char* theContext);
//! method to get all file names in the given context (or in the current context, if 'theContext' is empty)
/*!
*/
virtual SALOMEDS::ListOfStrings* GetFileNames(const char* theContext);
//! method to get all components names
/*!
*/
virtual SALOMEDS::ListOfStrings* GetComponentNames(const char* theContext);
//! method to Create a ChildIterator from an SObject
/*!
\param aSO SObject_ptr arguments
\return ChildIterator_ptr arguments, the created ChildIterator
*/
virtual SALOMEDS::ChildIterator_ptr NewChildIterator(SALOMEDS::SObject_ptr aSO);
//! method to Create a SComponentIterator
/*!
\return SComponentIterator_ptr arguments, the created SComponentIterator
*/
virtual SALOMEDS::SComponentIterator_ptr NewComponentIterator();
//! method to Create a StudyBuilder
/*!
\return StudyBuilder_ptr arguments, the created StudyBuilder
*/
virtual SALOMEDS::StudyBuilder_ptr NewBuilder();
//! method to get study name
/*!
\return char* arguments, the study name
*/
virtual char* Name();
//! method to set study name
/*!
\param name char* arguments, the study name
*/
virtual void Name(const char* name);
//! method to get if study has been saved
/*!
\return bool arguments
*/
virtual CORBA::Boolean IsSaved();
//! method to set if study has been saved
/*!
\param save bool arguments
*/
virtual void IsSaved(CORBA::Boolean save);
//! method to Detect if a Study has been modified since it has been saved
/*!
\return bool arguments
*/
virtual CORBA::Boolean IsModified();
//! method to set Modified flag of a Study to True
virtual void Modified();
//! method to get URL of the study (idem GetPersistentReference)
/*!
\return char* arguments, the study URL
*/
virtual char* URL();
//! method to set URL of the study
/*!
\param url char* arguments, the study URL
*/
virtual void URL(const char* url);
virtual CORBA::Short StudyId();
virtual void StudyId(CORBA::Short id);
static SALOMEDS::Study_ptr GetStudy(const DF_Label& theLabel, CORBA::ORB_ptr orb);
static SALOMEDS_Study_i* GetStudyServant(SALOMEDSImpl_Study*, CORBA::ORB_ptr orb);
static void IORUpdated(SALOMEDSImpl_AttributeIOR* theAttribute);
virtual void UpdateIORLabelMap(const char* anIOR, const char* aLabel);
virtual SALOMEDS::Study::ListOfSObject* FindDependances(SALOMEDS::SObject_ptr anObject);
virtual SALOMEDS::AttributeStudyProperties_ptr GetProperties();
virtual char* GetLastModificationDate();
virtual SALOMEDS::ListOfDates* GetModificationsDate();
virtual char* ConvertObjectToIOR(CORBA::Object_ptr theObject) {return _orb->object_to_string(theObject); }
virtual CORBA::Object_ptr ConvertIORToObject(const char* theIOR) { return _orb->string_to_object(theIOR); };
virtual SALOMEDS::UseCaseBuilder_ptr GetUseCaseBuilder();
virtual void Close();
void EnableUseCaseAutoFilling(CORBA::Boolean isEnabled);
// postponed destroying of CORBA object functionality
virtual void AddPostponed(const char* theIOR);
virtual void AddCreatedPostponed(const char* theIOR);
#ifndef WIN32
virtual void RemovePostponed(const CORBA::Long theUndoLimit); // removes postponed IORs of old transaction
// if theUndoLimit==0, removes all
virtual void UndoPostponed(const CORBA::Long theWay); // theWay = 1: resurrect objects,
// theWay = -1: get back to the list of postponed
#else
virtual void RemovePostponed(CORBA::Long theUndoLimit); // removes postponed IORs of old transaction
// if theUndoLimit==0, removes all
virtual void UndoPostponed(CORBA::Long theWay); // theWay = 1: resurrect objects,
// theWay = -1: get back to the list of postponed
#endif
virtual SALOMEDS::AttributeParameter_ptr GetCommonParameters(const char* theID, CORBA::Long theSavePoint);
virtual SALOMEDS::AttributeParameter_ptr GetModuleParameters(const char* theID,
const char* theModuleName,
CORBA::Long theSavePoint);
virtual void SetStudyLock(const char* theLockerID);
virtual bool IsStudyLocked();
virtual void UnLockStudy(const char* theLockerID);
virtual SALOMEDS::ListOfStrings* GetLockerID();
virtual void SetReal(const char* theVarName, CORBA::Double theValue);
virtual void SetInteger(const char* theVarName, CORBA::Long theValue);
virtual void SetBoolean(const char* theVarName, CORBA::Boolean theValue);
virtual void SetString(const char* theVarName, const char* theValue);
virtual void SetStringAsDouble(const char* theVarName, CORBA::Double theValue);
virtual CORBA::Double GetReal(const char* theVarName);
virtual CORBA::Long GetInteger(const char* theVarName);
virtual CORBA::Boolean GetBoolean(const char* theVarName);
virtual char* GetString(const char* theVarName);
virtual CORBA::Boolean IsReal(const char* theVarName);
virtual CORBA::Boolean IsInteger(const char* theVarName);
virtual CORBA::Boolean IsBoolean(const char* theVarName);
virtual CORBA::Boolean IsString(const char* theVarName);
virtual CORBA::Boolean IsVariable(const char* theVarName);
virtual SALOMEDS::ListOfStrings* GetVariableNames();
virtual CORBA::Boolean RemoveVariable(const char* theVarName);
virtual CORBA::Boolean RenameVariable(const char* theVarName, const char* theNewVarName);
virtual CORBA::Boolean IsVariableUsed(const char* theVarName);
virtual SALOMEDS::ListOfListOfStrings* ParseVariables(const char* theVars);
virtual char* GetDefaultScript(const char* theModuleName, const char* theShift);
virtual CORBA::Boolean DumpStudy(const char* thePath,
const char* theBaseName,
CORBA::Boolean isPublished,
CORBA::Boolean isMultiFile);
virtual SALOMEDSImpl_Study* GetImpl() { return _impl; }
virtual CORBA::LongLong GetLocalImpl(const char* theHostname, CORBA::Long thePID, CORBA::Boolean& isLocal);
virtual void attach(SALOMEDS::Observer_ptr theObs, CORBA::Boolean modify);
};
#endif
|