DSF2FLAC
Public Member Functions | Static Public Member Functions | Private Member Functions
fstreamPlus Class Reference

#include <fstream_plus.h>

List of all members.

Public Member Functions

 fstreamPlus ()
virtual ~fstreamPlus ()
bool seekg (streampos pos)
bool seekg (streamoff pos, ios_base::seekdir way)
bool read_int8 (dsf2flac_int8 *b, stream_size n)
bool read_uint8 (dsf2flac_uint8 *b, stream_size n)
bool read_uint16 (dsf2flac_uint16 *b, stream_size n)
bool read_uint32 (dsf2flac_uint32 *b, stream_size n)
bool read_uint64 (dsf2flac_uint64 *b, stream_size n)
bool read_int8_rev (dsf2flac_int8 *b, stream_size n)
bool read_int32_rev (dsf2flac_int32 *b, stream_size n)
bool read_uint8_rev (dsf2flac_uint8 *b, stream_size n)
bool read_uint16_rev (dsf2flac_uint16 *b, stream_size n)
bool read_uint32_rev (dsf2flac_uint32 *b, stream_size n)
bool read_uint64_rev (dsf2flac_uint64 *b, stream_size n)
char * getFilePath ()

Static Public Member Functions

template<typename rType >
static void reverseByteOrder (rType *b, stream_size n)
template<typename rType >
static rType reverseByteOrder (rType b)

Private Member Functions

template<typename rType >
bool read_helper (rType *b, stream_size n)
template<typename rType >
bool read_helper_rev (rType *b, stream_size n)

Constructor & Destructor Documentation

dsf2flac - http://code.google.com/p/dsf2flac/

A file conversion tool for translating dsf dsd audio files into flac pcm audio files.

Copyright (c) 2013 by respective authors.

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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA

Acknowledgements

Many thanks to the following authors and projects whose work has greatly helped the development of this tool.

Sebastian Gesemann - dsd2pcm (http://code.google.com/p/dsd2pcm/) SACD Ripper (http://code.google.com/p/sacd-ripper/) Maxim V.Anisiutkin - foo_input_sacd (http://sourceforge.net/projects/sacddecoder/files/) Vladislav Goncharov - foo_input_sacd_hq (http://vladgsound.wordpress.com) Jesus R - www.sonore.us fstream_plus.cpp

Implementation file for extended version of fstream.

Provides some more convinient methods for reading and checking at the same time Also for reading data in reverse bit order


Member Function Documentation

template<typename rType >
bool fstreamPlus::read_helper ( rType *  b,
stream_size  n 
) [private]

templates for the readers

template<typename rType >
bool fstreamPlus::read_helper_rev ( rType *  b,
stream_size  n 
) [private]

Additional read methods - reverse byte order

Additional read methods - native bit order

bool fstreamPlus::read_int8_rev ( dsf2flac_int8 b,
stream_size  n 
) [inline]

Additional read methods - reverse byte order

bool fstreamPlus::read_uint8_rev ( dsf2flac_uint8 b,
stream_size  n 
) [inline]
template<typename rType >
void fstreamPlus::reverseByteOrder ( rType *  b,
stream_size  n 
) [static]

Extra things

template<typename rType >
rType fstreamPlus::reverseByteOrder ( rType  b) [static]
bool fstreamPlus::seekg ( streampos  pos)

Overload seekg methods to return true on fail

bool fstreamPlus::seekg ( streamoff  pos,
ios_base::seekdir  way 
)

The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines