/* This file is part of libstructureIO, a library providing abstract
* access to structured information.
* Copyright (C) 2009 Niels Fröhling
*
* libstructureIO.hpp: global header
* Copyright 2009 Niels Fröhling
*
* 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., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef LIBSTRUCTUREIO_HPP
#define LIBSTRUCTUREIO_HPP
#pragma warning (disable : 4200)
#pragma warning (disable : 4996)
#include "libmemory.hpp"
#include <malloc.h>
#include <string.h>
#include <stdio.h>
#define DATATYPES_INCLUDE_0D
#define DATATYPES_INCLUDE_1D
#define DATATYPES_INCLUDE_2D
#include "libdatatypes.hpp"
#include "libstreamIO.hpp"
#include "libcoding.hpp"
/* these datatypes are optimized to the smallest size not the best speed */
#ifndef ORD_INITIAL
typedef short int ord;
#define ORD_MAX_BITS ((sizeof(ord) * 8) - 1)
#define ORD_SCALE_BITS ((sizeof(ord) * 8) - 2)
#define ORD_INVALID -1
#define ORD_INITIAL 0
#endif
#ifndef SYM_INITIAL
typedef short int sym;
#define SYM_MAX_BITS ((sizeof(sym) * 8) - 1)
#define SYM_SCALE_BITS ((sizeof(sym) * 8) - 2)
#define SYM_INVALID -1
#define SYM_INITIAL 0
#endif
#ifndef CNT_INITIAL
typedef unsigned short int cnt;
typedef unsigned short int fix;
#define CNT_MAX_BITS ((sizeof(cnt) * 8) - 1)
#define CNT_SCALE_BITS ((sizeof(cnt) * 8) - 2)
#define CNT_INVALID 0x7FFF
#define CNT_INITIAL 0
#endif
#ifndef HSH_INITIAL
typedef unsigned long int hsh;
#define HSH_MAX_BITS ((sizeof(hsh) * 8) - 0)
#define HSH_SCALE_BITS ((sizeof(hsh) * 8) - 1)
#define HSH_INVALID 0xFFFF
#define HSH_INITIAL 0
#endif
#ifndef PROB_INITIAL
typedef long int prob;
#define PROB_MAX_BITS ((sizeof(prob) * 8) - 1)
#define PROB_SCALE_BITS ((sizeof(prob) * 8) - 2)
#define PROB_INVALID 0x7FFFFFFF
#define PROB_INITIAL 0
#endif
typedef short int bits;
#ifndef CONFIG_DIR
#define CONFIG_GLOBAL
#define CONFIG_DIR "F:/Development/Common Projects/Libs/libstructureIO-0.0.0/Config/"
#endif
#include "libstructureIO-0.0.0/IO.hpp"
#endif //LIBSTRUCTUREIO_HPP