Version: 9.12.0
SALOMEDS_Driver_i Class Reference

#include <SALOMEDS_Driver_i.hxx>

Inheritance diagram for SALOMEDS_Driver_i:

Public Member Functions

 SALOMEDS_Driver_i (Engines::EngineComponent_ptr theEngine, CORBA::ORB_ptr theORB)
 
 SALOMEDS_Driver_i (SALOMEDS::Driver_ptr theDriver, CORBA::ORB_ptr theORB)
 
 ~SALOMEDS_Driver_i ()
 
virtual std::string GetIOR ()
 
virtual SALOMEDSImpl_TMPFileSave (const SALOMEDSImpl_SComponent &theComponent, const std::string &theURL, long &theStreamLength, bool isMultiFile)
 
virtual SALOMEDSImpl_TMPFileSaveASCII (const SALOMEDSImpl_SComponent &theComponent, const std::string &theURL, long &theStreamLength, bool isMultiFile)
 
virtual bool Load (const SALOMEDSImpl_SComponent &theComponent, const unsigned char *theStream, const long theStreamLength, const std::string &theURL, bool isMultiFile)
 
virtual bool LoadASCII (const SALOMEDSImpl_SComponent &theComponent, const unsigned char *theStream, const long theStreamLength, const std::string &theURL, bool isMultiFile)
 
virtual void Close (const SALOMEDSImpl_SComponent &theComponent)
 
virtual std::string ComponentDataType ()
 
virtual std::string Version ()
 
virtual std::string IORToLocalPersistentID (const SALOMEDSImpl_SObject &theSObject, const std::string &IORString, bool isMultiFile, bool isASCII)
 
virtual std::string LocalPersistentIDToIOR (const SALOMEDSImpl_SObject &theSObject, const std::string &aLocalPersistentID, bool isMultiFile, bool isASCII)
 
virtual bool CanCopy (const SALOMEDSImpl_SObject &theObject)
 
virtual SALOMEDSImpl_TMPFileCopyFrom (const SALOMEDSImpl_SObject &theObject, int &theObjectID, long &theStreamLength)
 
virtual bool CanPaste (const std::string &theComponentName, int theObjectID)
 
virtual std::string PasteInto (const unsigned char *theStream, const long theStreamLength, int theObjectID, const SALOMEDSImpl_SObject &theObject)
 
virtual SALOMEDSImpl_TMPFileDumpPython (bool isPublished, bool isMultiFile, bool &isValidScript, long &theStreamLength)
 

Protected Attributes

SALOMEDS::Driver_var _driver
 
Engines::EngineComponent_var _engine
 
CORBA::ORB_var _orb
 

Constructor & Destructor Documentation

◆ SALOMEDS_Driver_i() [1/2]

SALOMEDS_Driver_i::SALOMEDS_Driver_i ( Engines::EngineComponent_ptr  theEngine,
CORBA::ORB_ptr  theORB 
)

References _driver, _engine, and _orb.

◆ SALOMEDS_Driver_i() [2/2]

SALOMEDS_Driver_i::SALOMEDS_Driver_i ( SALOMEDS::Driver_ptr  theDriver,
CORBA::ORB_ptr  theORB 
)

References _driver, _engine, and _orb.

◆ ~SALOMEDS_Driver_i()

SALOMEDS_Driver_i::~SALOMEDS_Driver_i ( )

Member Function Documentation

◆ CanCopy()

bool SALOMEDS_Driver_i::CanCopy ( const SALOMEDSImpl_SObject theObject)
virtual

◆ CanPaste()

bool SALOMEDS_Driver_i::CanPaste ( const std::string &  theComponentName,
int  theObjectID 
)
virtual

◆ Close()

void SALOMEDS_Driver_i::Close ( const SALOMEDSImpl_SComponent theComponent)
virtual

◆ ComponentDataType()

std::string SALOMEDS_Driver_i::ComponentDataType ( )
virtual

Implements SALOMEDSImpl_Driver.

References _driver.

◆ CopyFrom()

SALOMEDSImpl_TMPFile * SALOMEDS_Driver_i::CopyFrom ( const SALOMEDSImpl_SObject theObject,
int &  theObjectID,
long &  theStreamLength 
)
virtual

< TODO: conversion from size_t to long

Implements SALOMEDSImpl_Driver.

References _driver, _orb, SALOMEDS::lock(), SALOMEDS_SObject_i::New(), SALOMEDSImpl_TMPFile::Size(), and SALOMEDS::unlock().

◆ DumpPython()

SALOMEDSImpl_TMPFile * SALOMEDS_Driver_i::DumpPython ( bool  isPublished,
bool  isMultiFile,
bool isValidScript,
long &  theStreamLength 
)
virtual

< TODO: conversion from size_t to long

Implements SALOMEDSImpl_Driver.

References _engine, SALOMEDS::lock(), SALOMEDSImpl_TMPFile::Size(), and SALOMEDS::unlock().

◆ GetIOR()

std::string SALOMEDS_Driver_i::GetIOR ( )
virtual

Implements SALOMEDSImpl_Driver.

References _engine, and _orb.

◆ IORToLocalPersistentID()

std::string SALOMEDS_Driver_i::IORToLocalPersistentID ( const SALOMEDSImpl_SObject theSObject,
const std::string &  IORString,
bool  isMultiFile,
bool  isASCII 
)
virtual

◆ Load()

bool SALOMEDS_Driver_i::Load ( const SALOMEDSImpl_SComponent theComponent,
const unsigned char *  theStream,
const long  theStreamLength,
const std::string &  theURL,
bool  isMultiFile 
)
virtual

◆ LoadASCII()

bool SALOMEDS_Driver_i::LoadASCII ( const SALOMEDSImpl_SComponent theComponent,
const unsigned char *  theStream,
const long  theStreamLength,
const std::string &  theURL,
bool  isMultiFile 
)
virtual

◆ LocalPersistentIDToIOR()

std::string SALOMEDS_Driver_i::LocalPersistentIDToIOR ( const SALOMEDSImpl_SObject theSObject,
const std::string &  aLocalPersistentID,
bool  isMultiFile,
bool  isASCII 
)
virtual

◆ PasteInto()

std::string SALOMEDS_Driver_i::PasteInto ( const unsigned char *  theStream,
const long  theStreamLength,
int  theObjectID,
const SALOMEDSImpl_SObject theObject 
)
virtual

◆ Save()

SALOMEDSImpl_TMPFile * SALOMEDS_Driver_i::Save ( const SALOMEDSImpl_SComponent theComponent,
const std::string &  theURL,
long &  theStreamLength,
bool  isMultiFile 
)
virtual

◆ SaveASCII()

SALOMEDSImpl_TMPFile * SALOMEDS_Driver_i::SaveASCII ( const SALOMEDSImpl_SComponent theComponent,
const std::string &  theURL,
long &  theStreamLength,
bool  isMultiFile 
)
virtual

< TODO: conversion from size_t to long

Implements SALOMEDSImpl_Driver.

References _driver, _orb, SALOMEDS::lock(), SALOMEDS_SComponent_i::New(), SALOMEDSImpl_TMPFile::Size(), and SALOMEDS::unlock().

◆ Version()

std::string SALOMEDS_Driver_i::Version ( )
virtual

Implements SALOMEDSImpl_Driver.

References _engine.

Field Documentation

◆ _driver

◆ _engine

Engines::EngineComponent_var SALOMEDS_Driver_i::_engine
protected

◆ _orb