#include "SALOMEDSImpl_Study.hxx"#include <string.h>#include <KERNEL_version.h>#include <Basics_Utils.hxx>#include <Basics_DirUtils.hxx>#include "HDFexplorer.hxx"#include "DF_Application.hxx"#include "DF_ChildIterator.hxx"#include "SALOMEDSImpl_ChildNodeIterator.hxx"#include "SALOMEDSImpl_Attributes.hxx"#include "SALOMEDSImpl_UseCaseIterator.hxx"#include "SALOMEDSImpl_AttributeReference.hxx"#include "SALOMEDSImpl_StudyHandle.hxx"#include "SALOMEDSImpl_Tool.hxx"#include "SALOMEDSImpl_IParameters.hxx"#include "SALOMEDSImpl_ScalarVariable.hxx"#include "SALOMEDSImpl_SComponent.hxx"#include "HDFOI.hxx"#include <fstream>#include <sstream>#include <algorithm>
Macros | |
| #define | WITHOUT_TABS |
| #define | DIRECTORYID 16661 |
| #define | FILELOCALID 26662 |
| #define | FILEID "FILE: " |
| #define | VARIABLE_SEPARATOR ':' |
| #define | OPERATION_SEPARATOR '|' |
| #define | USE_CASE_LABEL_ID "0:2" |
Functions | |
| static void | SaveAttributes (const SALOMEDSImpl_SObject &aSO, HDFgroup *hdf_group_sobject) |
| Function : SaveAttributes Purpose : Save attributes for object. More... | |
| static void | ReadAttributes (SALOMEDSImpl_Study *, const SALOMEDSImpl_SObject &, HDFdataset *) |
| static void | BuildTree (SALOMEDSImpl_Study *, HDFgroup *) |
| static void | Translate_IOR_to_persistentID (const SALOMEDSImpl_SObject &, SALOMEDSImpl_Driver *, bool isMultiFile, bool isASCII) |
| static void | ReadNoteBookVariables (SALOMEDSImpl_Study *theStudy, HDFgroup *theGroup) |
| static std::string | replace_tabs (const std::string &in) |
| static std::string | GetComponentHeader (const char *theComponentName) |
| void | dumpSO (const SALOMEDSImpl_SObject &theSO, std::fstream &fp, const std::string &Tab, SALOMEDSImpl_Study *theStudy) |
| static SALOMEDSImpl_AbstractCallback *& | getGenObjRegister (DF_Document *doc) |
Variables | |
| static const int | indent_size = 2 |
| number of spaces for indentation in Python dump files (to replace \t symbols) More... | |
| #define DIRECTORYID 16661 |
| #define FILEID "FILE: " |
| #define FILELOCALID 26662 |
| #define OPERATION_SEPARATOR '|' |
| #define USE_CASE_LABEL_ID "0:2" |
| #define VARIABLE_SEPARATOR ':' |
| #define WITHOUT_TABS |
|
static |
References HDFgroup::CloseOnDisk(), SALOMEDSImpl_Study::CreateObjectID(), HDFobject::GetName(), HDF_DATASET, HDF_GROUP, HDF_NAME_MAX_LEN, HDFgroup::InternalObjectIndentify(), HDFgroup::InternalObjectType(), pythfilter::name, HDFgroup::nInternalObjects(), HDFgroup::OpenOnDisk(), and ReadAttributes().
Referenced by SALOMEDSImpl_Study::Open().
| void dumpSO | ( | const SALOMEDSImpl_SObject & | theSO, |
| std::fstream & | fp, | ||
| const std::string & | Tab, | ||
| SALOMEDSImpl_Study * | theStudy | ||
| ) |
References DF_Label::GetAttributes(), SALOMEDSImpl_GenericAttribute::GetClassType(), SALOMEDSImpl_SObject::GetID(), SALOMEDSImpl_SObject::GetLabel(), SALOMEDSImpl_ChildIterator::More(), SALOMEDSImpl_Study::NewChildIterator(), SALOMEDSImpl_ChildIterator::Next(), and SALOMEDSImpl_ChildIterator::Value().
Referenced by SALOMEDSImpl_Study::dump().
|
static |
Referenced by SALOMEDSImpl_Study::DumpStudy().
|
static |
References DF_Document::GetDocumentID().
Referenced by SALOMEDSImpl_Study::RegisterGenObj(), SALOMEDSImpl_Study::setGenObjRegister(), and SALOMEDSImpl_Study::UnRegisterGenObj().
|
static |
References SALOMEDSImpl_StudyBuilder::Addreference(), HDFdataset::CloseOnDisk(), SALOMEDSImpl_Study::CreateObjectID(), SALOMEDSImpl_StudyBuilder::FindOrCreateAttribute(), HDFobject::GetName(), HDFdataset::GetSize(), DF_Attribute::Load(), SALOMEDSImpl_Study::NewBuilder(), HDFdataset::OpenOnDisk(), and HDFdataset::ReadFromDisk().
Referenced by BuildTree().
|
static |
References SALOMEDSImpl_Study::AddVariable(), HDFdataset::CloseOnDisk(), HDFgroup::CloseOnDisk(), HDFgroup::ExistInternalObject(), HDFdataset::GetSize(), HDF_GROUP, HDF_NAME_MAX_LEN, HDFgroup::InternalObjectIndentify(), HDFgroup::InternalObjectType(), SALOMEDSImpl_GenericVariable::Load(), HDFgroup::nInternalObjects(), HDFdataset::OpenOnDisk(), HDFgroup::OpenOnDisk(), HDFdataset::ReadFromDisk(), and SALOMEDSImpl_GenericVariable::String2VariableType().
Referenced by SALOMEDSImpl_Study::Open().
|
static |
References indent_size, and out.
Referenced by SALOMEDSImpl_Study::DumpStudy().
|
static |
Function : SaveAttributes Purpose : Save attributes for object.
< TODO: conversion from size_t to int
References HDFdataset::CloseOnDisk(), HDFdataset::CreateOnDisk(), DF_Label::GetAttributes(), SALOMEDSImpl_SObject::GetLabel(), HDF_STRING, SALOMEDSImpl_GenericAttribute::Impl_GetType(), DF_Attribute::Save(), and HDFdataset::WriteOnDisk().
Referenced by SALOMEDSImpl_Study::Impl_SaveAs(), and SALOMEDSImpl_Study::Impl_SaveObject().
|
static |
References TestLifeCycleCORBA::engine, DF_Label::FindAttribute(), SALOMEDSImpl_AttributeIOR::GetID(), SALOMEDSImpl_SObject::GetLabel(), DF_ChildIterator::More(), DF_ChildIterator::Next(), SALOMEDSImpl_AttributePersistentRef::Set(), SALOMEDSImpl_Study::SObject(), DF_ChildIterator::Value(), and SALOMEDSImpl_AttributeIOR::Value().
Referenced by SALOMEDSImpl_Study::Impl_SaveAs().
|
static |
number of spaces for indentation in Python dump files (to replace \t symbols)
Referenced by replace_tabs().