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