VISU.Container_i Class Reference

#include <VISU_Table_i.hh>

Inheritance diagram for VISU.Container_i:

Inheritance graph

Public Types

typedef std::map< std::string,
QString > 
TRestoringMap
typedef Storable *(* TStorableEngine )(SALOMEDS::SObject_ptr theSObject, const std::string &thePrefix, const TRestoringMap &theMap)
typedef std::map< std::string,
TStorableEngine
TCallbackMap

Public Member Functions

 Container_i (SALOMEDS::Study_ptr theStudy)
virtual ~Container_i ()
virtual VISU::VISUType GetType ()
virtual void AddCurve (Curve_ptr theCurve)
virtual void RemoveCurve (Curve_ptr theCurve)
virtual CORBA::Long GetNbCurves ()
virtual void Clear ()
virtual void RemoveFromStudy ()
virtual SALOMEDS::SObject_var GetSObject ()
virtual StorableCreate ()
virtual StorableRestore (const Storable::TRestoringMap &theMap, SALOMEDS::SObject_ptr SO)
virtual void ToStream (std::ostringstream &theStr)
virtual const char * GetComment () const
virtual const char * GenerateName ()
void Update ()
VISU::Curve_iGetCurve (CORBA::Long theIndex)
virtual const char * GetName () const
virtual void SetName (const char *theName)
const SALOMEDS::Study_var & GetStudyDocument () const
QString GetEntry ()
std::string ToString ()
virtual char * GetID ()

Static Public Member Functions

static StorableRestore (SALOMEDS::SObject_ptr theSObject, const std::string &thePrefix, const Storable::TRestoringMap &theMap)
static void Registry (const char *theComment, TStorableEngine theEngine)
static StorableCreate (SALOMEDS::SObject_ptr, const std::string &thePrefix, const std::string &theString)
static QString FindValue (const TRestoringMap &theMap, const std::string &theArg, bool *isFind=NULL)
static QString FindValue (const TRestoringMap &theMap, const std::string &theArg, const QString &theDefaultValue)
static void StrToMap (const QString &theStr, VISU::Storable::TRestoringMap &theMap)
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, const int theVal)
static void DataToStream (std::ostringstream &theStr, const QString &theName, const double theVal)
static CORBA::ORB_var GetORB ()
static PortableServer::POA_var GetPOA ()
static SALOME_NamingService * GetNS ()
static SALOME_LifeCycleCORBA * GetLCC ()
static VISU_Gen_iGetVisuGenImpl ()

Static Public Attributes

static const std::string myComment = "CONTAINER"

Protected Member Functions

StorableBuild (int theRestoring)

Protected Attributes

QStringList myCurves
SALOMEDS::SObject_var mySObj
std::string myName
SALOMEDS::Study_var myStudy
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

Private Member Functions

 Container_i ()
 Container_i (const Container_i &)

Static Private Attributes

static int myNbPresent = 0

Member Typedef Documentation

typedef std::map<std::string,QString> VISU.Storable.TRestoringMap [inherited]
 

typedef Storable*(* VISU.Storable.TStorableEngine)(SALOMEDS::SObject_ptr theSObject, const std::string &thePrefix, const TRestoringMap &theMap) [inherited]
 

typedef std::map<std::string,TStorableEngine> VISU.Storable.TCallbackMap [inherited]
 


Constructor & Destructor Documentation

VISU.Container_i.Container_i  )  [private]
 

VISU.Container_i.Container_i const Container_i  )  [private]
 

VISU.Container_i::Container_i SALOMEDS::Study_ptr  theStudy  ) 
 

Constructor

VISU.Container_i::~Container_i  )  [virtual]
 

Destructor


Member Function Documentation

virtual VISU::VISUType VISU.Container_i.GetType  )  [virtual]
 

Implements VISU.Base_i.

void VISU.Container_i::AddCurve Curve_ptr  theCurve  )  [virtual]
 

Inserts curve into the container

void VISU.Container_i::RemoveCurve Curve_ptr  theCurve  )  [virtual]
 

Removes curve from the container

CORBA::Long VISU.Container_i::GetNbCurves  )  [virtual]
 

Gets number of curves in the container

void VISU.Container_i::Clear  )  [virtual]
 

Clears container

void VISU.Container_i::RemoveFromStudy  )  [virtual]
 

Implements VISU.RemovableObject_i.

SALOMEDS::SObject_var VISU.Container_i::GetSObject  )  [virtual]
 

VISU::Storable * VISU.Container_i::Build int  theRestoring  )  [protected]
 

Builds presentation of container

VISU::Storable * VISU.Container_i::Create  )  [virtual]
 

Creates container object

VISU::Storable * VISU.Container_i::Restore const Storable::TRestoringMap theMap,
SALOMEDS::SObject_ptr  SO
[virtual]
 

Restores container data from the stream

VISU::Storable * VISU.Container_i::Restore SALOMEDS::SObject_ptr  theSObject,
const std::string thePrefix,
const Storable::TRestoringMap theMap
[static]
 

Called from engine to restore container from the file

void VISU.Container_i::ToStream std::ostringstream &  theStr  )  [virtual]
 

Flushes container data into the stream

Implements VISU.Storable.

const char * VISU.Container_i::GetComment  )  const [virtual]
 

Gets comment string

Implements VISU.Storable.

const char * VISU.Container_i::GenerateName  )  [virtual]
 

Generate unique name

void VISU.Container_i::Update  ) 
 

Updates presentation of container

VISU::Curve_i * VISU.Container_i::GetCurve CORBA::Long  theIndex  ) 
 

Gets curve from container by index NB : curves are numbered from 1

virtual const char* VISU.PrsObject_i.GetName  )  const [virtual, inherited]
 

void VISU.PrsObject_i::SetName const char *  theName  )  [virtual, inherited]
 

const SALOMEDS::Study_var& VISU.PrsObject_i.GetStudyDocument  )  const [inherited]
 

QString VISU.PrsObject_i::GetEntry  )  [inherited]
 

string VISU.Storable::ToString  )  [inherited]
 

void VISU.Storable::Registry const char *  theComment,
TStorableEngine  theEngine
[static, inherited]
 

Storable * VISU.Storable::Create SALOMEDS::SObject_ptr  ,
const std::string thePrefix,
const std::string theString
[static, inherited]
 

QString VISU.Storable::FindValue const TRestoringMap theMap,
const std::string theArg,
bool *  isFind = NULL
[static, inherited]
 

QString VISU.Storable::FindValue const TRestoringMap theMap,
const std::string theArg,
const QString &  theDefaultValue
[static, inherited]
 

void VISU.Storable::StrToMap const QString &  theStr,
VISU::Storable::TRestoringMap theMap
[static, inherited]
 

static SALOMEDS::SObject_ptr VISU.Storable.GetResultSO SALOMEDS::SObject_ptr  theSObject  )  [static, inherited]
 

void VISU.Storable::DataToStream std::ostringstream &  theStr,
const QString &  theName,
const QString &  theVal
[static, inherited]
 

void VISU.Storable::DataToStream std::ostringstream &  theStr,
const QString &  theName,
const int  theVal
[static, inherited]
 

void VISU.Storable::DataToStream std::ostringstream &  theStr,
const QString &  theName,
const double  theVal
[static, inherited]
 

char * VISU.Base_i::GetID  )  [virtual, inherited]
 

Reimplemented in VISU.VISU_Gen_i, and VISU.VISU_Gen_i.

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]
 

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

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


Field Documentation

int VISU.Container_i::myNbPresent = 0 [static, private]
 

QStringList VISU.Container_i.myCurves [protected]
 

SALOMEDS::SObject_var VISU.Container_i.mySObj [protected]
 

const string VISU.Container_i::myComment = "CONTAINER" [static]
 

std::string VISU.PrsObject_i.myName [protected, inherited]
 

SALOMEDS::Study_var VISU.PrsObject_i.myStudy [protected, inherited]
 

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]