Include :
- aggiunto EgtUUID e Writer - Scan diventato Scanner.
This commit is contained in:
+42
@@ -0,0 +1,42 @@
|
||||
//----------------------------------------------------------------------------
|
||||
// EgalTech 2015-2015
|
||||
//----------------------------------------------------------------------------
|
||||
// File : EgnWriter.h Data : 02.06.15 Versione : 1.6f1
|
||||
// Contenuto : Dichiarazione della classe Writer.
|
||||
//
|
||||
//
|
||||
//
|
||||
// Modifiche : 02.06.15 DS Creazione modulo.
|
||||
//
|
||||
//
|
||||
//----------------------------------------------------------------------------
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <string>
|
||||
|
||||
struct gzFile_s ;
|
||||
|
||||
//----------------------- Macro per import/export -----------------------------
|
||||
#undef EGN_EXPORT
|
||||
#if defined( I_AM_EGN) // da definirsi solo nella DLL
|
||||
#define EGN_EXPORT __declspec( dllexport)
|
||||
#else
|
||||
#define EGN_EXPORT __declspec( dllimport)
|
||||
#endif
|
||||
|
||||
//----------------------------------------------------------------------------
|
||||
class Writer
|
||||
{
|
||||
public :
|
||||
EGN_EXPORT Writer( void)
|
||||
: m_OutFile( nullptr) {}
|
||||
EGN_EXPORT ~Writer( void)
|
||||
{ Close() ; }
|
||||
EGN_EXPORT bool Init( const std::string& sFile, bool bCompressed = false) ;
|
||||
EGN_EXPORT bool Close( void) ;
|
||||
EGN_EXPORT bool OutText( const std::string& sText, bool bEndL = true) ;
|
||||
|
||||
private :
|
||||
gzFile_s* m_OutFile ;
|
||||
} ;
|
||||
Reference in New Issue
Block a user