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

VISU.Storable Class Reference

#include <VISUConfig.hh>

Inheritance diagram for VISU.Storable:
Inheritance graph

Public Types

typedef std::map< std::string,
QString > 
TRestoringMap
typedef Storable *(* TStorableEngine )(SALOMEDS::SObject_ptr theSObject, const TRestoringMap &theMap, const std::string &thePrefix, CORBA::Boolean theIsMultiFile)
typedef std::map< std::string,
TStorableEngine
TStorableEngineMap
typedef std::string TFileName
typedef std::vector< TFileNameTFileNames
typedef VISU::Base TInterface

Public Member Functions

std::string ToString ()
virtual const char * GetComment () const =0
virtual CORBA::Boolean CanCopy (SALOMEDS::SObject_ptr theObject)
virtual bool CopyFrom (SALOMEDS::SObject_ptr theObject, CORBA::Long &theObjectID, const std::string &theTmpDir, TFileNames &theFileNames)
virtual char * GetID ()
virtual VISU::VISUType GetType ()=0

Static Public Member Functions

static void RegistryStorableEngine (const std::string &theComment, TStorableEngine theEngine)
static StorableCreate (SALOMEDS::SObject_ptr theSObject, const std::string &theLocalPersistentID, const std::string &thePrefix, CORBA::Boolean theIsMultiFile)
static VISU::VISUType Comment2Type (const std::string &theComment)
static VISU::VISUType RestoringMap2Type (const TRestoringMap &theRestoringMap)
static VISU::VISUType Stream2Type (const std::string &thePersistentString)
static VISU::VISUType SObject2Type (const _PTR(SObject)&theSObject)
static std::string CorrectPersistentString (const std::string &thePersistentString)
static std::string FindEntry (SALOMEDS::Study_ptr theStudyDocument, const std::string &theStartEntry, const TRestoringMap &theRestoringMap, int IsAllLevels=true)
static QString FindValue (const TRestoringMap &theMap, const std::string &theArg, bool *theIsFind=NULL)
static QString FindValue (const TRestoringMap &theMap, const std::string &theArg, const QString &theDefaultValue)
static void StringToMap (const QString &theString, TRestoringMap &theMap)
static TRestoringMap GetStorableMap (_PTR(SObject) theSObject)
static SALOMEDS::SObject_ptr GetResultSO (SALOMEDS::SObject_ptr theSObject)
static void DataToStream (std::ostringstream &theStr, const QString &theName, const QString &theVal)
static void DataToStream (std::ostringstream &theStr, const QString &theName, int theVal)
static void DataToStream (std::ostringstream &theStr, const QString &theName, long theVal)
static void DataToStream (std::ostringstream &theStr, const QString &theName, double theVal)
static CORBA::ORB_var GetORB ()
static PortableServer::POA_var GetPOA ()
static SALOME_NamingService * GetNS ()
static SALOME_LifeCycleCORBA * GetLCC ()
static VISU_Gen_iGetVisuGenImpl ()

Protected Member Functions

virtual void ToStream (std::ostringstream &theStr)=0

Protected Attributes

std::string myID

Static Protected Attributes

static QMutex * myMutex = NULL
static CORBA::ORB_var myOrb
static PortableServer::POA_var myPoa
static SALOME_NamingService * myNamingService
static VISU_Gen_imyVisuGenImpl
static SALOME_LifeCycleCORBA * myEnginesLifeCycle

Static Private Attributes

static TStorableEngineMap myStorableEngineMap

Member Typedef Documentation

typedef std::map<std::string, QString> VISU.Storable.TRestoringMap
typedef Storable*(* VISU.Storable.TStorableEngine)(SALOMEDS::SObject_ptr theSObject, const TRestoringMap &theMap, const std::string &thePrefix, CORBA::Boolean theIsMultiFile)

Reimplemented in VISU.Result_i.

typedef std::vector<TFileName> VISU.Storable.TFileNames

Reimplemented in VISU.Result_i.

typedef VISU::Base VISU.Base_i.TInterface [inherited]

Member Function Documentation

std::string VISU.Storable::ToString ( )
virtual const char* VISU.Storable.GetComment ( ) const [pure virtual]
void VISU.Storable::RegistryStorableEngine ( const std::string theComment,
TStorableEngine  theEngine 
) [static]
Storable * VISU.Storable::Create ( SALOMEDS::SObject_ptr  theSObject,
const std::string theLocalPersistentID,
const std::string thePrefix,
CORBA::Boolean  theIsMultiFile 
) [static]
VISU::VISUType VISU.Storable::Comment2Type ( const std::string theComment) [static]
VISU::VISUType VISU.Storable::RestoringMap2Type ( const TRestoringMap theRestoringMap) [static]
VISU::VISUType VISU.Storable::Stream2Type ( const std::string thePersistentString) [static]
VISU::VISUType VISU.Storable::SObject2Type ( const _PTR(SObject)&  theSObject) [static]

References VISU._PTR(), and VISU.TNONE.

std::string VISU.Storable::CorrectPersistentString ( const std::string thePersistentString) [static]
std::string VISU.Storable::FindEntry ( SALOMEDS::Study_ptr  theStudyDocument,
const std::string theStartEntry,
const TRestoringMap theRestoringMap,
int  IsAllLevels = true 
) [static]
QString VISU.Storable::FindValue ( const TRestoringMap theMap,
const std::string theArg,
bool *  theIsFind = NULL 
) [static]

References MESSAGE, and MYDEBUG.

QString VISU.Storable::FindValue ( const TRestoringMap theMap,
const std::string theArg,
const QString &  theDefaultValue 
) [static]
void VISU.Storable::StringToMap ( const QString &  theString,
TRestoringMap theMap 
) [static]
Storable::TRestoringMap VISU.Storable::GetStorableMap ( _PTR(SObject)  theSObject) [static]
static SALOMEDS::SObject_ptr VISU.Storable.GetResultSO ( SALOMEDS::SObject_ptr  theSObject) [static]
void VISU.Storable::DataToStream ( std::ostringstream &  theStr,
const QString &  theName,
const QString &  theVal 
) [static]
void VISU.Storable::DataToStream ( std::ostringstream &  theStr,
const QString &  theName,
int  theVal 
) [static]
void VISU.Storable::DataToStream ( std::ostringstream &  theStr,
const QString &  theName,
long  theVal 
) [static]
void VISU.Storable::DataToStream ( std::ostringstream &  theStr,
const QString &  theName,
double  theVal 
) [static]
CORBA::Boolean VISU.Storable::CanCopy ( SALOMEDS::SObject_ptr  theObject) [virtual]

Reimplemented in VISU.Result_i.

bool VISU.Storable::CopyFrom ( SALOMEDS::SObject_ptr  theObject,
CORBA::Long &  theObjectID,
const std::string theTmpDir,
TFileNames theFileNames 
) [virtual]

Reimplemented in VISU.Result_i.

References VISU_Example_06.aFileName.

virtual void VISU.Storable.ToStream ( std::ostringstream &  theStr) [protected, pure virtual]
char * VISU.Base_i::GetID ( ) [virtual, inherited]

Reimplemented in VISU.VISU_Gen_i, and VISU.VISU_Gen_i.

virtual VISU::VISUType VISU.Base_i.GetType ( ) [pure virtual, inherited]
static CORBA::ORB_var VISU.Base_i.GetORB ( ) [static, inherited]
static PortableServer::POA_var VISU.Base_i.GetPOA ( ) [static, inherited]
static SALOME_NamingService* VISU.Base_i.GetNS ( ) [static, inherited]

References visu.myNamingService.

static SALOME_LifeCycleCORBA* VISU.Base_i.GetLCC ( ) [static, inherited]
static VISU_Gen_i* VISU.Base_i.GetVisuGenImpl ( ) [static, inherited]

Field Documentation

std::string VISU.Base_i.myID [protected, inherited]
QMutex * VISU.Base_i::myMutex = NULL [static, protected, inherited]
CORBA::ORB_var VISU.Base_i::myOrb [static, protected, inherited]
PortableServer::POA_var VISU.Base_i::myPoa [static, protected, inherited]
SALOME_NamingService * VISU.Base_i::myNamingService [static, protected, inherited]
VISU_Gen_i * VISU.Base_i::myVisuGenImpl [static, protected, inherited]
SALOME_LifeCycleCORBA * VISU.Base_i::myEnginesLifeCycle [static, protected, inherited]
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