Salome HOME
projects
/
modules
/
kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[EDF30399] : Steer directory hosting replay files
[modules/kernel.git]
/
src
/
Container
/
SALOME_FileTransfer_i.cxx
diff --git
a/src/Container/SALOME_FileTransfer_i.cxx
b/src/Container/SALOME_FileTransfer_i.cxx
index 9f4a0b21c24381f76f234acc1cbf745c0f7d8f5e..f83d9de95c00105dd6badcba08444fd09d1cd1c2 100644
(file)
--- a/
src/Container/SALOME_FileTransfer_i.cxx
+++ b/
src/Container/SALOME_FileTransfer_i.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-20
16 CEA/DEN, EDF R&D
, OPEN CASCADE
+// Copyright (C) 2007-20
24 CEA, EDF
, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
@@
-41,7
+41,6
@@
fileTransfer_i::fileTransfer_i()
{
fileTransfer_i::fileTransfer_i()
{
- MESSAGE("fileTransfer_i::fileTransfer_i");
_fileKey=1;
}
_fileKey=1;
}
@@
-53,7
+52,6
@@
fileTransfer_i::fileTransfer_i()
fileTransfer_i::~fileTransfer_i()
{
fileTransfer_i::~fileTransfer_i()
{
- MESSAGE("fileTransfer_i::~fileTransfer_i");
}
}
@@
-69,7
+67,6
@@
fileTransfer_i::~fileTransfer_i()
CORBA::Long fileTransfer_i::open(const char* fileName)
{
CORBA::Long fileTransfer_i::open(const char* fileName)
{
- MESSAGE(" fileTransfer_i::open " << fileName);
int aKey = _fileKey++;
_ctr=0;
FILE* fp;
int aKey = _fileKey++;
_ctr=0;
FILE* fp;
@@
-92,7
+89,6
@@
CORBA::Long fileTransfer_i::open(const char* fileName)
void fileTransfer_i::close(CORBA::Long fileId)
{
void fileTransfer_i::close(CORBA::Long fileId)
{
- MESSAGE("fileTransfer_i::close");
FILE* fp;
if (! (fp = _fileAccess[fileId]) )
{
FILE* fp;
if (! (fp = _fileAccess[fileId]) )
{
@@
-119,7
+115,6
@@
void fileTransfer_i::close(CORBA::Long fileId)
Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId)
{
Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId)
{
- //MESSAGE("fileTransfer_i::getBlock");
Engines::fileBlock* aBlock = new Engines::fileBlock;
FILE* fp;
Engines::fileBlock* aBlock = new Engines::fileBlock;
FILE* fp;
@@
-134,9
+129,9
@@
Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId)
CORBA::Octet *buf;
buf = Engines::fileBlock::allocbuf(FILEBLOCK_SIZE);
CORBA::Octet *buf;
buf = Engines::fileBlock::allocbuf(FILEBLOCK_SIZE);
-
in
t nbRed = fread(buf, sizeof(CORBA::Octet), FILEBLOCK_SIZE, fp);
+
size_
t nbRed = fread(buf, sizeof(CORBA::Octet), FILEBLOCK_SIZE, fp);
//SCRUTE(nbRed);
//SCRUTE(nbRed);
- aBlock->replace(
nbRed,
nbRed, buf, 1); // 1 means give ownership
+ aBlock->replace(
(CORBA::ULong)nbRed, (CORBA::ULong)
nbRed, buf, 1); // 1 means give ownership
return aBlock;
}
return aBlock;
}
@@
-149,7
+144,6
@@
Engines::fileBlock* fileTransfer_i::getBlock(CORBA::Long fileId)
*/
CORBA::Long fileTransfer_i::openW(const char* fileName)
{
*/
CORBA::Long fileTransfer_i::openW(const char* fileName)
{
- MESSAGE(" fileTransfer_i::openW " << fileName);
int aKey = _fileKey++;
_ctr=0;
FILE* fp;
int aKey = _fileKey++;
_ctr=0;
FILE* fp;
@@
-171,7
+165,6
@@
CORBA::Long fileTransfer_i::openW(const char* fileName)
*/
void fileTransfer_i::putBlock(CORBA::Long fileId, const Engines::fileBlock& block)
{
*/
void fileTransfer_i::putBlock(CORBA::Long fileId, const Engines::fileBlock& block)
{
- MESSAGE("fileTransfer_i::putBlock");
FILE* fp;
if (! (fp = _fileAccess[fileId]) )
{
FILE* fp;
if (! (fp = _fileAccess[fileId]) )
{