Version: 5.1.6

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::Component_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 _driver_orb, _NS, 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.

References _MedCorbaObj.

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 _driver_orb, and 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 _driver_orb, testGaussLocalization.a, testGaussLocalization.b, med_opsupp_test.family, MESSAGE, and test_NonCoincidentDEC.size.

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

CORBA: give a transient reference (when loading an object, opening study)

References GetMED(), MEDMEM.MED_i.getSupport(), MEDMEM.healName(), MEDCouplingCorbaSwigTestClt.ior, and Med_Gen_test.meshName.

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

References _driver_orb.

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 _driver_orb, and 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::Component_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]