IT++ Logo

binfile.cpp File Reference


Detailed Description

Binary file formats implementations.

Author:
Tony Ottosson, Thomas Eriksson and Adam Piatyszek
-------------------------------------------------------------------------

IT++ - C++ library of mathematical, signal processing, speech processing, and communications classes and functions

Copyright (C) 1995-2007 (see AUTHORS file for a list of contributors)

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

-------------------------------------------------------------------------

Definition in file binfile.cpp.

#include <itpp/base/binfile.h>
#include <itpp/base/math/misc.h>
#include <cstring>

Go to the source code of this file.

Namespaces

namespace  itpp

Functions

template<typename T1, typename T2>
void itpp::read_endian (T1 &st, T2 &data, bool switch_endian=false)
 Read binary data and optionally switch endianness.
template<typename T1, typename T2>
void itpp::write_endian (T1 &st, T2 data, bool switch_endian=false)
 Write binary data and optionally switch endianness.
bool itpp::exist (const std::string &name)
 Checks if a filename already exists on the disk.

SourceForge Logo

Generated on Sun Sep 14 18:52:36 2008 for IT++ by Doxygen 1.5.6