tfel
Loading...
Searching...
No Matches
BinaryRead.hxx File Reference

27 avr 2009 More...

#include <unistd.h>
#include <type_traits>
#include "TFEL/Config/TFELConfig.hxx"
#include "TFEL/System/System.hxx"

Classes

struct  tfel::system::BinaryReader< void * >
struct  tfel::system::EnumBinaryReader< T >
struct  tfel::system::PointerBinaryReader< T >
struct  tfel::system::EmptyBinaryReader< T >
struct  tfel::system::StandardBinaryReader< T >
struct  tfel::system::BinaryReader< T >

Namespaces

namespace  tfel
 the namespace tfel encloses all the TFEL project. This namespace is empty.

Macros

#define TFEL_SYSTEM_BINARY_READER_DECLARATION(X)

Functions

template<typename T>
void tfel::system::binary_read (const int f, T &v)
template<typename T>
T tfel::system::binary_read (const int f)

Detailed Description

27 avr 2009

Author
Thomas Helfer

Macro Definition Documentation

◆ TFEL_SYSTEM_BINARY_READER_DECLARATION

#define TFEL_SYSTEM_BINARY_READER_DECLARATION ( X)
Value:
\
template <> \
struct TFELSYSTEM_VISIBILITY_EXPORT BinaryReader<X> { \ \
static void exe(const int, X&); \
};

Function Documentation

◆ binary_read() [1/2]

template<typename T>
T tfel::system::binary_read ( const int f)

read a value in a stream

Parameters
[in]f: input stream
Returns
value read

◆ binary_read() [2/2]

template<typename T>
void tfel::system::binary_read ( const int f,
T & v )

read a value in a stream

Parameters
[in]f: input stream
[out]v: value read