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));
128 os.
myStream.read((
char*) &v,
sizeof(
int));
141 os.
myStream.read((
char*) &b,
sizeof(
char));
150 os.
myStream.read((
char*) &size,
sizeof(
int));
152 while (done < size) {
153 const int toRead =
MIN2((
int)size - done, (
int)
BUF_MAX - 1);
167 os.
myStream.read((
char*) &size,
sizeof(
int));
182 os.
myStream.read((
char*) &size,
sizeof(
int));
197 os.
myStream.read((
char*) &size,
sizeof(
int));
199 std::vector<int> nested;
214 os.
myStream.read((
char*) &v,
sizeof(
int));
216 os.
myStream.read((
char*) &v,
sizeof(
int));
219 os.
myStream.read((
char*) &v,
sizeof(
int));
A point in 2D or 3D with translation and scaling methods.
void set(SUMOReal x, SUMOReal y)