38 #ifdef CHECK_MEMORY_LEAKS
40 #endif // CHECK_MEMORY_LEAKS
52 const bool isTyped,
const bool doValidate)
53 : myStream(name.c_str(), std::fstream::in | std::fstream::binary),
54 myAmTyped(isTyped), myEnableValidation(doValidate) {}
75 return std::string(
myBuffer, numBytes);
110 os.
myStream.read((
char*) &c,
sizeof(
unsigned char));
118 os.
myStream.read((
char*) &i,
sizeof(
int));
126 os.
myStream.read((
char*) &i,
sizeof(
unsigned int));
136 os.
myStream.read((
char*) &v,
sizeof(
int));
149 os.
myStream.read((
char*) &b,
sizeof(
char));
158 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
159 unsigned int done = 0;
160 while (done < size) {
161 const unsigned int toRead =
MIN2((
unsigned int)size - done, (
unsigned int)
BUF_MAX - 1);
175 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
190 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
205 os.
myStream.read((
char*) &size,
sizeof(
unsigned int));
207 std::vector<unsigned int> nested;
222 os.
myStream.read((
char*) &v,
sizeof(
int));
224 os.
myStream.read((
char*) &v,
sizeof(
int));
227 os.
myStream.read((
char*) &v,
sizeof(
int));
A point in 2D or 3D with translation and scaling methods.
void set(SUMOReal x, SUMOReal y)