00001 // Copyright (c) 1998-2014 by Tech Soft 3D, Inc. 00002 // 00003 // The information contained herein is confidential and proprietary to Tech Soft 3D, Inc., 00004 // and considered a trade secret as defined under civil and criminal statutes. 00005 // Tech Soft 3D, Inc. shall pursue its civil and criminal remedies in the event of 00006 // unauthorized use or misappropriation of its trade secrets. Use of this information 00007 // by anyone other than authorized employees of Tech Soft 3D, Inc. is granted only under 00008 // a written non-disclosure agreement, expressly prescribing the scope and manner of such use. 00009 00011 00016 #ifndef HBINFILETKHEADER 00017 #define HBINFILETKHEADER 00018 00019 #ifndef __cplusplus 00020 #error C++ compiler required 00021 #endif 00022 00023 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00024 00025 #ifdef _MSC_VER 00026 #ifndef HSTREAM_STATIC_LIB 00027 #ifdef HBINFILETK_EXPORTS 00028 #define HBINFILETK_API2 __declspec (dllexport) 00029 #else 00030 #define HBINFILETK_API2 __declspec (dllimport) 00031 #endif 00032 #else 00033 #ifndef BSTREAM_STATIC_LIB 00034 #define BSTREAM_STATIC_LIB 00035 #endif 00036 #define HBINFILETK_API2 00037 #endif 00038 #else 00039 #define HBINFILETK_API2 00040 #endif 00041 00042 #ifdef LINUX_SYSTEM 00043 #ifndef HSTREAM_STATIC_LIB 00044 #ifdef HBINFILETK_EXPORTS 00045 #define HBINFILETK_API2 __attribute__ ((visibility ("default"))) 00046 #else 00047 #define HBINFILETK_API2 00048 #endif 00049 #else 00050 #ifndef BSTREAM_STATIC_LIB 00051 #define BSTREAM_STATIC_LIB 00052 #endif 00053 #define HBINFILETK_API2 00054 #endif 00055 #endif 00056 00057 #ifdef TEST_RIG_1 00058 #define HBINFILETK_API 00059 #else 00060 #define HBINFILETK_API HBINFILETK_API2 00061 #endif 00062 00063 00064 #ifdef HSTREAM_READONLY 00065 #ifndef BSTREAM_READONLY 00066 #define BSTREAM_READONLY 00067 #endif 00068 #endif 00069 00070 00071 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00072 00073 #include "BStream.h" 00074 #include "hc.h" 00075 00076 #include "HOpcodeHandler.h" 00077 #include "HStreamFileToolkit.h" 00078 00079 //#include "utf_utils.h" 00080 00085 00086 00094 #ifndef SWIG 00095 TK_Status HBINFILETK_API HTK_Read_Stream_File (char const * filename, HStreamFileToolkit * tk); 00096 #endif 00097 00099 00106 #ifndef SWIG 00107 TK_Status HBINFILETK_API HTK_Read_Stream_File (char const * filename, int flags = 0); 00108 #endif 00109 00110 00112 00118 TK_Status HBINFILETK_API HTK_Read_Stream_File (__wchar_t const * filename, HStreamFileToolkit * tk); 00119 #ifdef _MSC_VER 00120 TK_Status HBINFILETK_API HTK_Read_Stream_File (unsigned short const * filename, HStreamFileToolkit * tk); 00121 #endif 00122 00124 00131 TK_Status HBINFILETK_API HTK_Read_Stream_File (__wchar_t const * filename, int flags = 0); 00132 #ifdef _MSC_VER 00133 TK_Status HBINFILETK_API HTK_Read_Stream_File (unsigned short const * filename, int flags = 0); 00134 #endif 00135 00136 00138 00143 #ifndef SWIG 00144 TK_Status HBINFILETK_API HTK_Read_Stream_File (char const * filename, int flags, HStreamFileToolkit * tk); 00145 #endif 00146 00155 00156 00164 #ifndef SWIG 00165 TK_Status HBINFILETK_API HTK_Write_Stream_File (char const * filename, HStreamFileToolkit * tk); 00166 #endif 00167 00168 00169 00171 00178 #ifndef SWIG 00179 TK_Status HBINFILETK_API HTK_Write_Stream_File (char const * filename, int flags = 0); 00180 #endif 00181 00182 00183 00185 00193 TK_Status HBINFILETK_API2 HTK_Write_Stream_File (__wchar_t const * filename, HStreamFileToolkit * tk); 00194 #ifdef _MSC_VER 00195 TK_Status HBINFILETK_API2 HTK_Write_Stream_File (unsigned short const * filename, HStreamFileToolkit * tk); 00196 #endif 00197 00198 00200 00207 TK_Status HBINFILETK_API HTK_Write_Stream_File (__wchar_t const * filename, int flags = 0); 00208 #ifdef _MSC_VER 00209 TK_Status HBINFILETK_API HTK_Write_Stream_File (unsigned short const * filename, int flags = 0); 00210 #endif 00211 00212 00213 00215 00220 #ifndef SWIG 00221 TK_Status HBINFILETK_API2 HTK_Write_Stream_File (char const * filename, int flags, HStreamFileToolkit * tk); 00222 #endif 00223 00224 #endif 00225