projects
/
ctsim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix log window display of some strings
[ctsim.git]
/
include
/
fnetorderstream.h
diff --git
a/include/fnetorderstream.h
b/include/fnetorderstream.h
index 5e1336a21accf2d29ff4f80431543919c9f6ce64..876c6a350bb98253cb9b8a4807b93d612b5eacd7 100644
(file)
--- a/
include/fnetorderstream.h
+++ b/
include/fnetorderstream.h
@@
-9,7
+9,7
@@
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
** This is part of the CTSim program
** Copyright (c) 1983-2001 Kevin Rosenberg
**
-** $Id
: fnetorderstream.h,v 1.10 2002/05/28 18:43:16 kevin Exp
$
+** $Id$
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
**
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License (version 2) as
@@
-115,17
+115,11
@@
SwapBytes8IfLittleEndian (void* buffer)
void ConvertNetworkOrder (void* buffer, size_t bytes);
void ConvertReverseNetworkOrder (void* buffer, size_t bytes);
void ConvertNetworkOrder (void* buffer, size_t bytes);
void ConvertReverseNetworkOrder (void* buffer, size_t bytes);
-#define GPP3 1
using std::fstream;
class fnetorderstream : public fstream {
public:
using std::fstream;
class fnetorderstream : public fstream {
public:
-#if GPP3
fnetorderstream (const char* filename, std::ios::openmode mode)
fnetorderstream (const char* filename, std::ios::openmode mode)
- : fstream (filename, mode) {}
-#else
- fnetorderstream (const char* filename, int mode)
- : fstream (filename, mode) {}
-#endif
+ : fstream (filename, mode) {}
~fnetorderstream (void)
{}
~fnetorderstream (void)
{}
@@
-134,7
+128,7
@@
class fnetorderstream : public fstream {
virtual void writeInt32 (kuint32 n);
virtual void writeFloat32 (kfloat32 n);
virtual void writeFloat64 (kfloat64 n);
virtual void writeInt32 (kuint32 n);
virtual void writeFloat32 (kfloat32 n);
virtual void writeFloat64 (kfloat64 n);
-
+
virtual void readInt16 (kuint16& n);
virtual void readInt32 (kuint32& n);
virtual void readFloat32 (kfloat32& n);
virtual void readInt16 (kuint16& n);
virtual void readInt32 (kuint32& n);
virtual void readFloat32 (kfloat32& n);
@@
-144,18
+138,14
@@
class fnetorderstream : public fstream {
class frnetorderstream : public fnetorderstream {
public:
class frnetorderstream : public fnetorderstream {
public:
-#if GPP3
frnetorderstream (const char* filename, std::ios::openmode mode)
: fnetorderstream (filename, mode) {}
frnetorderstream (const char* filename, std::ios::openmode mode)
: fnetorderstream (filename, mode) {}
-#else
- frnetorderstream (const char* filename, int mode)
- : fnetorderstream (filename, mode) {}
-#endif
+
virtual void writeInt16 (kuint16 n);
virtual void writeInt32 (kuint32 n);
virtual void writeFloat32 (kfloat32 n);
virtual void writeFloat64 (kfloat64 n);
virtual void writeInt16 (kuint16 n);
virtual void writeInt32 (kuint32 n);
virtual void writeFloat32 (kfloat32 n);
virtual void writeFloat64 (kfloat64 n);
-
+
virtual void readInt16 (kuint16& n);
virtual void readInt32 (kuint32& n);
virtual void readFloat32 (kfloat32& n);
virtual void readInt16 (kuint16& n);
virtual void readInt32 (kuint32& n);
virtual void readFloat32 (kfloat32& n);