SUMO - Simulation of Urban MObility

BinaryInputDevice.cpp File Reference

#include <config.h>
#include <string>
#include "BinaryInputDevice.h"

Go to the source code of this file.

Defines

#define BUF_MAX   1000

Functions

BinaryInputDevice & operator>> (BinaryInputDevice &os, int &i) throw ()
BinaryInputDevice & operator>> (BinaryInputDevice &os, long &l) throw ()
BinaryInputDevice & operator>> (BinaryInputDevice &os, std::string &s) throw ()
BinaryInputDevice & operator>> (BinaryInputDevice &os, bool &b) throw ()
BinaryInputDevice & operator>> (BinaryInputDevice &os, SUMOReal &f) throw ()
BinaryInputDevice & operator>> (BinaryInputDevice &os, unsigned int &i) throw ()

Detailed Description

Author:
Daniel Krajzewicz
Date:
2005-09-15
Version:
Id:
BinaryInputDevice.cpp 11445 2011-10-31 23:24:01Z behrisch

Definition in file BinaryInputDevice.cpp.


Define Documentation

#define BUF_MAX   1000

Definition at line 40 of file BinaryInputDevice.cpp.

Referenced by operator>>().


Function Documentation

BinaryInputDevice& operator>> ( BinaryInputDevice &  os,
int &  i 
) throw ()
Parameters:
[in,out]osThe BinaryInputDevice to read the int from
[in]iThe int to store the read value into
Returns:
The used BinaryInputDevice for further processing

Definition at line 60 of file BinaryInputDevice.cpp.

BinaryInputDevice& operator>> ( BinaryInputDevice &  os,
long &  l 
) throw ()
Parameters:
[in,out]osThe BinaryInputDevice to read the long from
[in]iThe int to store the read value into
Returns:
The used BinaryInputDevice for further processing

Definition at line 103 of file BinaryInputDevice.cpp.

BinaryInputDevice& operator>> ( BinaryInputDevice &  os,
std::string &  s 
) throw ()

Reads the length of the string as an unsigned int, first. Reads then the specified number of chars into "myBuffer". Please note that the buffer has a fixed size - longer strings will cause an error.

Parameters:
[in,out]osThe BinaryInputDevice to read the string from
[in]iThe string to store the read value into
Returns:
The used BinaryInputDevice for further processing
Todo:
Use either a buffer with a flexible size or report an error if the buffer is too small!

Definition at line 89 of file BinaryInputDevice.cpp.

References BUF_MAX.

BinaryInputDevice& operator>> ( BinaryInputDevice &  os,
bool &  b 
) throw ()
Parameters:
[in,out]osThe BinaryInputDevice to read the bool from
[in]iThe bool to store the read value into
Returns:
The used BinaryInputDevice for further processing

Definition at line 81 of file BinaryInputDevice.cpp.

BinaryInputDevice& operator>> ( BinaryInputDevice &  os,
SUMOReal &  f 
) throw ()
Parameters:
[in,out]osThe BinaryInputDevice to read the SUMOReal from
[in]iThe SUMOReal to store the read value into
Returns:
The used BinaryInputDevice for further processing

Definition at line 74 of file BinaryInputDevice.cpp.

References SUMOReal.

BinaryInputDevice& operator>> ( BinaryInputDevice &  os,
unsigned int &  i 
) throw ()
Parameters:
[in,out]osThe BinaryInputDevice to read the unsigned int from
[in]iThe unsigned int to store the read value into
Returns:
The used BinaryInputDevice for further processing

Definition at line 67 of file BinaryInputDevice.cpp.

 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Defines