AgentXcpp  Revision:4ac4848
Internals Documentation
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends
/home/tanjeff/projekte/agentxcpp/src/types.hpp File Reference
#include <string>
#include <istream>
#include <ostream>
Include dependency graph for types.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  data_t
 A type representing a contigous byte stream. More...

Typedefs

typedef unsigned char uint8_t
typedef unsigned short uint16_t
typedef unsigned int uint32_t
typedef unsigned long long uint64_t
typedef unsigned char byte_t
 A type with exactly 8 bits.
typedef std::basic_istream
< byte_t
input_stream
 input stream for connection to master agent

Functions

std::ostream & operator<< (std::ostream &out, const data_t &stream)

Typedef Documentation

typedef unsigned char byte_t

A type with exactly 8 bits.

The char types in C++ (char, unsigned char, signed char) are defined to have at least 8 bits. Although these types probably have 8 bits on virtually every platform, I'm a perfectionist here and define my own type, so that it can be redefined in one central place.

Definition at line 39 of file types.hpp.

typedef std::basic_istream<byte_t> input_stream

input stream for connection to master agent

This type is used as input stream which is used to receive protocol messages from the master agent.

Definition at line 47 of file types.hpp.

typedef unsigned short uint16_t

Definition at line 27 of file types.hpp.

typedef unsigned int uint32_t

Definition at line 28 of file types.hpp.

typedef unsigned long long uint64_t

Definition at line 29 of file types.hpp.

typedef unsigned char uint8_t

Definition at line 26 of file types.hpp.


Function Documentation

std::ostream& operator<< ( std::ostream &  out,
const data_t stream 
) [inline]

Definition at line 56 of file types.hpp.