mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-15 12:30:33 +05:00
Temporary rollback ASCII load/save for smesh
This commit is contained in:
parent
a7337fae5b
commit
8de9daadc2
@ -2132,6 +2132,7 @@ SALOMEDS::TMPFile* SMESH_Gen_i::SaveASCII( SALOMEDS::SComponent_ptr theComponent
|
|||||||
bool isMultiFile ) {
|
bool isMultiFile ) {
|
||||||
if(MYDEBUG) MESSAGE( "SMESH_Gen_i::SaveASCII" );
|
if(MYDEBUG) MESSAGE( "SMESH_Gen_i::SaveASCII" );
|
||||||
SALOMEDS::TMPFile_var aStreamFile = Save( theComponent, theURL, isMultiFile );
|
SALOMEDS::TMPFile_var aStreamFile = Save( theComponent, theURL, isMultiFile );
|
||||||
|
return aStreamFile._retn();
|
||||||
|
|
||||||
//after usual saving needs to encipher binary to text string
|
//after usual saving needs to encipher binary to text string
|
||||||
//Any binary symbol will be represent as "|xx" () hexadecimal format number
|
//Any binary symbol will be represent as "|xx" () hexadecimal format number
|
||||||
@ -2225,6 +2226,11 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
TCollection_AsciiString tmpDir =
|
TCollection_AsciiString tmpDir =
|
||||||
isMultiFile ? TCollection_AsciiString( ( char* )theURL ) : ( char* )SALOMEDS_Tool::GetTmpDir().c_str();
|
isMultiFile ? TCollection_AsciiString( ( char* )theURL ) : ( char* )SALOMEDS_Tool::GetTmpDir().c_str();
|
||||||
|
|
||||||
|
INFOS( "THE URL++++++++++++++" )
|
||||||
|
INFOS( theURL );
|
||||||
|
INFOS( "THE TMP PATH+++++++++" );
|
||||||
|
INFOS( tmpDir );
|
||||||
|
|
||||||
// Convert the stream into sequence of files to process
|
// Convert the stream into sequence of files to process
|
||||||
SALOMEDS::ListOfFileNames_var aFileSeq = SALOMEDS_Tool::PutStreamToFiles( theStream,
|
SALOMEDS::ListOfFileNames_var aFileSeq = SALOMEDS_Tool::PutStreamToFiles( theStream,
|
||||||
tmpDir.ToCString(),
|
tmpDir.ToCString(),
|
||||||
@ -3138,6 +3144,7 @@ bool SMESH_Gen_i::LoadASCII( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
const char* theURL,
|
const char* theURL,
|
||||||
bool isMultiFile ) {
|
bool isMultiFile ) {
|
||||||
if(MYDEBUG) MESSAGE( "SMESH_Gen_i::LoadASCII" );
|
if(MYDEBUG) MESSAGE( "SMESH_Gen_i::LoadASCII" );
|
||||||
|
return Load( theComponent, theStream, theURL, isMultiFile );
|
||||||
|
|
||||||
//before call main ::Load method it's need for decipher text format to
|
//before call main ::Load method it's need for decipher text format to
|
||||||
//binary ( "|xx" => x' )
|
//binary ( "|xx" => x' )
|
||||||
|
Loading…
Reference in New Issue
Block a user