if ( putNewLine )
buffer += TCollection_AsciiString("\n");
- if ( Device()->Write( (Standard_Address)buffer.ToCString(), buffer.Length() ) != buffer.Length() )
+ if ( Device()->Write( (Standard_Address)buffer.ToCString(), buffer.Length() ) != (Standard_Size)buffer.Length() )
Storage_StreamWriteError::Raise();
}
while (!IsEnd && !FSD_CmpFile::IsEnd())
{
Standard_Character c;
- Device()->Read( &c, 1 );
+ Device()->Read( (Standard_Address)&c, 1 );
if ( c != '\n' && c != '\r')
{
buffer += c;
buffer.Clear();
while (!IsEnd() && (ccount < rsize)) {
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
buffer += c;
ccount++;
}
while (!IsEnd && !FSD_CmpFile::IsEnd())
{
char c;
- Device()->Read(&c, sizeof(c));
+ Device()->Read((Standard_Address)&c, sizeof(c));
if (isFirstTime)
{
if (c == '\n' || c == ' ')
buffer.Clear();
while (!IsEnd && !FSD_CmpFile::IsEnd()) {
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
if ((c != ' ') && (c != '\n'))
{
IsEnd = Standard_True;
}
*tmpb = c;
tmpb++; i++;
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
if ((c == '\n') || (c == ' '))
{
IsEnd = Standard_True;
Storage_BaseDriver& FSD_CmpFile::PutReference(const Standard_Integer aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
}
{
Standard_Integer i = aValue;
TCollection_AsciiString aStr = TCollection_AsciiString( i ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
{
Standard_Integer i = aValue;
TCollection_AsciiString aStr = TCollection_AsciiString( i ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
Storage_BaseDriver& FSD_CmpFile::PutInteger(const Standard_Integer aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
Storage_BaseDriver& FSD_CmpFile::PutBoolean(const Standard_Boolean aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( (Standard_Integer)aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
Storage_BaseDriver& FSD_CmpFile::PutReal(const Standard_Real aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
Storage_BaseDriver& FSD_CmpFile::PutShortReal(const Standard_ShortReal aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
TCollection_AsciiString aStr;
ReadWord( aStr );
if ( aStr.IsRealValue() )
- aValue = aStr.RealValue();
+ aValue = (Standard_ShortReal)aStr.RealValue();
else
Storage_StreamTypeMismatchError::Raise();
{
char c;
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
while (c != '#') {
if (IsEnd() || (c != ' ') || (c == '\r')|| (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
}
GetInteger (aRef);
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
while (c != '%') {
if (IsEnd() || (c != ' ') || (c == '\r')|| (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
}
GetInteger (aType);
{
char c;
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
while (c != '\n' && (c != '\r')) {
if (IsEnd() || (c != ' ')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
}
if (c == '\r') {
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
}
}
if ( putNewLine )
buffer += TCollection_AsciiString("\n");
- if ( Device()->Write( (Standard_Address)buffer.ToCString(), buffer.Length() ) != buffer.Length() )
+ if ( Device()->Write( (Standard_Address)buffer.ToCString(), buffer.Length() ) != (Standard_Size)buffer.Length() )
Storage_StreamWriteError::Raise();
}
// Buffer[0] = '\0';
// myStream.getline(Buffer,8192,'\n');
Standard_Character c;
- Device()->Read( &c, 1 );
+ Device()->Read( (Standard_Address)&c, 1 );
if ( c != '\n')
buffer += c;
else
buffer.Clear();
while (!fin && !IsEnd()) {
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
if (c == tg[count]) count++;
else count = 0;
if (c == '\0') fin = Standard_True;
i = (i << 8);
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
if (c == tg[count]) count++;
else count = 0;
if (count < SIZEOFNORMALEXTENDEDSECTION) {
buffer.Clear();
while (!IsEnd() && (ccount < rsize)) {
- Device()->Read( &c, sizeof( char ) );
+ Device()->Read( (Standard_Address)&c, sizeof( char ) );
buffer += c;
ccount++;
}
while (!IsEnd && !FSD_File::IsEnd()) {
char c;
- Device()->Read(&c, sizeof(c));
+ Device()->Read((Standard_Address)&c, sizeof(c));
if ( isFirstTime )
{
if ( c == '\n' || c == ' ' )
buffer.Clear();
while (!IsEnd && !FSD_File::IsEnd()) {
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
if ((c != ' ') && (c != '\n'))
IsEnd = Standard_True;
}
}
*tmpb = c;
tmpb++; i++;
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
if ((c == '\n') || (c == ' '))
IsEnd = Standard_True;
}
Storage_BaseDriver& FSD_File::PutReference(const Standard_Integer aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
{
Standard_Integer i = aValue;
TCollection_AsciiString aStr = TCollection_AsciiString( i ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
}
{
Standard_Integer i = aValue;
TCollection_AsciiString aStr = TCollection_AsciiString( i ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
}
Storage_BaseDriver& FSD_File::PutInteger(const Standard_Integer aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
}
Storage_BaseDriver& FSD_File::PutBoolean(const Standard_Boolean aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( (Standard_Integer)aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
}
Storage_BaseDriver& FSD_File::PutReal(const Standard_Real aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
}
Storage_BaseDriver& FSD_File::PutShortReal(const Standard_ShortReal aValue)
{
TCollection_AsciiString aStr = TCollection_AsciiString( aValue ) + " ";
- if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != aStr.Length() )
+ if ( Device()->Write( (Standard_Address)aStr.ToCString(), aStr.Length() ) != (Standard_Size)aStr.Length() )
Storage_StreamWriteError::Raise();
return *this;
}
TCollection_AsciiString aStr;
ReadWord( aStr );
if ( aStr.IsRealValue() )
- aValue = aStr.RealValue();
+ aValue = (Standard_ShortReal)aStr.RealValue();
else
Storage_StreamTypeMismatchError::Raise();
return *this;
{
char c;
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != '#') {
if (IsEnd() || (c != ' ') || (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
GetInteger (aRef);
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != '=') {
if (IsEnd() || (c != ' ') || (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != '%') {
if (IsEnd() || (c != ' ') || (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
GetInteger (aType);
void FSD_File::BeginReadPersistentObjectData()
{
char c;
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != '(') {
if (IsEnd() || (c != ' ') || (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
}
{
char c;
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != '(') {
if (IsEnd() || (c != ' ') || (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
}
{
char c;
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != ')') {
if (IsEnd() || (c != ' ') || (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
}
char c;
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != ')') {
if (IsEnd() || (c != ' ') || (c == '\n')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
while (c != '\n') {
if (IsEnd() || (c != ' ')) {
Storage_StreamFormatError::Raise();
}
- Device()->Read( &c, sizeof(char) );
+ Device()->Read( (Standard_Address)&c, sizeof(char) );
}
}