Version: 6.3.1
Public Member Functions | Static Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes | Static Private Attributes

Med_Gen_Driver_i Class Reference

#include <Med_Gen_Driver_i.hxx>

Inheritance diagram for Med_Gen_Driver_i:
Inheritance graph

Public Member Functions

 Med_Gen_Driver_i (CORBA::ORB_ptr orb)
virtual ~Med_Gen_Driver_i ()
SALOMEDS::TMPFile * Save (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
 Save data published under MED component.
SALOMEDS::TMPFile * SaveASCII (SALOMEDS::SComponent_ptr theComponent, const char *theURL, bool isMultiFile)
 Save data published under MED component in ASCII file.
CORBA::Boolean Load (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theStream, const char *theURL, bool isMultiFile)
CORBA::Boolean LoadASCII (SALOMEDS::SComponent_ptr theComponent, const SALOMEDS::TMPFile &theStream, const char *theURL, bool isMultiFile)
void Close (SALOMEDS::SComponent_ptr theComponent)
char * IORToLocalPersistentID (SALOMEDS::SObject_ptr theSObject, const char *IORString, CORBA::Boolean isMultiFile, CORBA::Boolean isASCII)
char * LocalPersistentIDToIOR (SALOMEDS::SObject_ptr theSObject, const char *aLocalPersistentID, CORBA::Boolean isMultiFile, CORBA::Boolean isASCII) throw (SALOME::SALOME_Exception)
bool CanPublishInStudy (CORBA::Object_ptr theIOR)
SALOMEDS::SObject_ptr PublishInStudy (SALOMEDS::Study_ptr theStudy, SALOMEDS::SObject_ptr theSObject, CORBA::Object_ptr theObject, const char *theName) throw (SALOME::SALOME_Exception)
CORBA::Boolean CanCopy (SALOMEDS::SObject_ptr theObject)
SALOMEDS::TMPFile * CopyFrom (SALOMEDS::SObject_ptr theObject, CORBA::Long &theObjectID)
CORBA::Boolean CanPaste (const char *theComponentName, CORBA::Long theObjectID)
SALOMEDS::SObject_ptr PasteInto (const SALOMEDS::TMPFile &theStream, CORBA::Long theObjectID, SALOMEDS::SObject_ptr theObject)
virtual
Engines::EngineComponent_ptr 
GetComponentInstance ()=0

Static Public Member Functions

static MEDMEM::MED_iGetMED (SALOMEDS::SComponent_ptr theStudy)

Protected Attributes

SALOME_NamingService * _NS

Private Member Functions

 Med_Gen_Driver_i ()

Private Attributes

CORBA::ORB_ptr _driver_orb

Static Private Attributes

static std::map< std::string,
MEDMEM::MED_i * > 
_MedCorbaObj

Constructor & Destructor Documentation

Med_Gen_Driver_i::Med_Gen_Driver_i ( ) [private]

default constructor: not for use

References MESSAGE.

Med_Gen_Driver_i::Med_Gen_Driver_i ( CORBA::ORB_ptr  orb)

standard constructor

References ASSERT, and MESSAGE.

Med_Gen_Driver_i::~Med_Gen_Driver_i ( ) [virtual]

Destructor

References MESSAGE.


Member Function Documentation

MEDMEM::MED_i * Med_Gen_Driver_i::GetMED ( SALOMEDS::SComponent_ptr  theComponent) [static]

GetMED [ static ]

Get Med of the study (for persistance)

Reimplemented in Med_Gen_i.

SALOMEDS::TMPFile * Med_Gen_Driver_i::Save ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)

Save data published under MED component.

Parameters:
theComponent- MED component
theURL- path to store
isMultiFile- store mode
Return values:
SALOMEDS.TMPFile*- result file
SALOMEDS::TMPFile * Med_Gen_Driver_i::SaveASCII ( SALOMEDS::SComponent_ptr  theComponent,
const char *  theURL,
bool  isMultiFile 
)

Save data published under MED component in ASCII file.

Parameters:
theComponent- MED component
theURL- path to store
isMultiFile- store mode
Return values:
SALOMEDS.TMPFile*- result file

References ensightMedEnsight_test.ASCII.

CORBA::Boolean Med_Gen_Driver_i::Load ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theStream,
const char *  theURL,
bool  isMultiFile 
)

CORBA: Load Mesh objects (called when an existing study is opened)

CORBA::Boolean Med_Gen_Driver_i::LoadASCII ( SALOMEDS::SComponent_ptr  theComponent,
const SALOMEDS::TMPFile &  theStream,
const char *  theURL,
bool  isMultiFile 
)
void Med_Gen_Driver_i::Close ( SALOMEDS::SComponent_ptr  theComponent)

CORBA:

References MESSAGE.

char * Med_Gen_Driver_i::IORToLocalPersistentID ( SALOMEDS::SObject_ptr  theSObject,
const char *  IORString,
CORBA::Boolean  isMultiFile,
CORBA::Boolean  isASCII 
)

CORBA: give a persistent reference of a transient object (for study save)

References testGaussLocalization.a, testGaussLocalization.b, med_opsupp_test.family, MESSAGE, test_NonCoincidentDEC.size, and medClient_test.type.

char * Med_Gen_Driver_i::LocalPersistentIDToIOR ( SALOMEDS::SObject_ptr  theSObject,
const char *  aLocalPersistentID,
CORBA::Boolean  isMultiFile,
CORBA::Boolean  isASCII 
) throw (SALOME::SALOME_Exception)
bool Med_Gen_Driver_i::CanPublishInStudy ( CORBA::Object_ptr  theIOR)

returns true, if can publish object

SALOMEDS::SObject_ptr Med_Gen_Driver_i::PublishInStudy ( SALOMEDS::Study_ptr  theStudy,
SALOMEDS::SObject_ptr  theSObject,
CORBA::Object_ptr  theObject,
const char *  theName 
) throw (SALOME::SALOME_Exception)

publish the given object

CORBA::Boolean Med_Gen_Driver_i::CanCopy ( SALOMEDS::SObject_ptr  theObject)

returns true, if can copy the object

SALOMEDS::TMPFile * Med_Gen_Driver_i::CopyFrom ( SALOMEDS::SObject_ptr  theObject,
CORBA::Long &  theObjectID 
)

create copy of the object and put it to the stream

References SALOME_MED.MED_DRIVER.

CORBA::Boolean Med_Gen_Driver_i::CanPaste ( const char *  theComponentName,
CORBA::Long  theObjectID 
)

returns true, if can copy the object

SALOMEDS::SObject_ptr Med_Gen_Driver_i::PasteInto ( const SALOMEDS::TMPFile &  theStream,
CORBA::Long  theObjectID,
SALOMEDS::SObject_ptr  theObject 
)
virtual Engines::EngineComponent_ptr Med_Gen_Driver_i.GetComponentInstance ( ) [pure virtual]

Implemented in Med_Gen_i.


Field Documentation

map< string, MEDMEM::MED_i * > Med_Gen_Driver_i::_MedCorbaObj [static, private]
CORBA::ORB_ptr Med_Gen_Driver_i._driver_orb [private]
SALOME_NamingService* Med_Gen_Driver_i._NS [protected]
Copyright © 2007-2011 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