analyzerReset (4134B)
1 /* -*- C++ -*- vim: set syntax=cpp: 2 * (C) 2005-2010 Frank-Rene Schaefer 3 * ABSOLUTELY NO WARRANTY */ 4 #ifndef __QUEX_INCLUDE_GUARD__ANALYZER__STRUCT__RESET 5 #define __QUEX_INCLUDE_GUARD__ANALYZER__STRUCT__RESET 6 7 #include "definitions" 8 9 QUEX_NAMESPACE_MAIN_OPEN 10 11 #ifdef __QUEX_OPTION_PLAIN_C 12 13 /* The constructor 'core' function is implemented per analyzer. 14 * It's implementation happens inside the generated source file. */ 15 16 /* Level (0) __________________________________________________________________ 17 * */ 18 QUEX_INLINE void QUEX_NAME(reset)(QUEX_TYPE_ANALYZER* me); 19 20 /* Level (1) __________________________________________________________________ 21 * */ 22 QUEX_INLINE void QUEX_NAME(reset_file_name)(QUEX_TYPE_ANALYZER* me, 23 const char* Filename, 24 const char* CodecName /* = 0x0 */); 25 26 /* Level (2) __________________________________________________________________ 27 * */ 28 QUEX_INLINE void QUEX_NAME(reset_FILE)(QUEX_TYPE_ANALYZER* me, 29 __QUEX_STD_FILE* fh, 30 const char* CodecName /* = 0x0 */, 31 bool BinaryModeF /* = false */); 32 33 #if defined(QUEX_OPTION_POSIX) 34 QUEX_INLINE void QUEX_NAME(reset_POSIX)(QUEX_TYPE_ANALYZER* me, 35 __QUEX_STD_FILE* fh, 36 const char* CodecName /* = 0x0 */); 37 #endif 38 39 #if ! defined(__QUEX_OPTION_PLAIN_C) 40 QUEX_INLINE void QUEX_NAME(reset_istream)(QUEX_TYPE_ANALYZER* me, 41 std::istream* istream_p, 42 const char* CodecName /* = 0x0 */, 43 bool BinaryModeF /* = false */); 44 45 #endif 46 47 #if defined(__QUEX_OPTION_WCHAR_T) && ! defined(__QUEX_OPTION_PLAIN_C) 48 QUEX_INLINE void QUEX_NAME(reset_wistream)(QUEX_TYPE_ANALYZER* me, 49 std::wistream* istream_p, 50 const char* CodecName /* = 0x0 */, 51 bool BinaryModeF /* = false */); 52 #endif 53 54 /* Level (3) __________________________________________________________________ 55 * */ 56 QUEX_INLINE void QUEX_NAME(reset_ByteLoader)(QUEX_TYPE_ANALYZER* me, 57 QUEX_NAME(ByteLoader)* byte_loader, 58 const char* CodecName); 59 60 /* Level (4) __________________________________________________________________ 61 * */ 62 QUEX_INLINE void QUEX_NAME(reset_LexatomLoader)(QUEX_TYPE_ANALYZER* me, 63 QUEX_NAME(LexatomLoader)*); 64 65 /* Level (5) __________________________________________________________________ 66 * */ 67 QUEX_INLINE QUEX_TYPE_LEXATOM* 68 QUEX_NAME(reset_memory)(QUEX_TYPE_ANALYZER* me, 69 QUEX_TYPE_LEXATOM* BufferMemoryBegin, 70 size_t BufferMemorySize, 71 QUEX_TYPE_LEXATOM* BufferEndOfFileP); 72 73 /* Basic constructions ________________________________________________________ 74 * */ 75 QUEX_INLINE void QUEX_NAME(basic_reset)(QUEX_TYPE_ANALYZER* me, 76 const char* InputName); 77 QUEX_INLINE void QUEX_NAME(user_reset)(QUEX_TYPE_ANALYZER* me); 78 79 #endif 80 81 QUEX_NAMESPACE_MAIN_CLOSE 82 83 #endif /* __QUEX_INCLUDE_GUARD__ANALYZER__STRUCT__RESET */