ExchangeFileContents
Lade ...
Suche ...
Keine Treffer
EfcApp.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_EFCAPP_H
2#define INC_EFCAPP_H
3//-----------------------------------------------------------------------------
37//-----------------------------------------------------------------------------
38// Forwards
39//-----------------------------------------------------------------------------
40#include "EfcTypes.h"
41#include "EuFileHelper.h"
42#include <string>
43#include <vector>
44//-----------------------------------------------------------------------------
45#ifdef _MSC_VER
46 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
47 #pragma warning( disable : 4251 )
48#endif
49//-----------------------------------------------------------------------------
60class EfcApp
61{
62 private:
63 //-------------------------------------------------------------------------
64 // >>>>>>>>>>>>>>>>>>>>> EfcCallBackFileFount >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
65 //-------------------------------------------------------------------------
80 {
81 private:
82 //============== Attributes
83 //---------------------------------------------------------------------
94 //---------------------------------------------------------------------
95
96 public:
97 //============== Constructors
98 //---------------------------------------------------------------------
111 //---------------------------------------------------------------------
112
113 //============== Methodes
114 //---------------------------------------------------------------------
132 virtual void processFileFount( const fs::path & rFullFileName );
133 //---------------------------------------------------------------------
134 };
135 //-------------------------------------------------------------------------
136 // <<<<<<<<<<<<<<<<<<<<< EfcCallBackFileFount <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
137 //-------------------------------------------------------------------------
138 private:
139 //============== Attribute ============
140 //-------------------------------------------------------------------------
150 #if defined(_MSC_VER) || defined(__MINGW32__)
151 std::vector<std::wstring> m_ParaVector;
152 #else
153 std::vector<std::string> m_ParaVector;
154 #endif // defined(_MSC_VER) || defined(__MINGW32__)
155 //-------------------------------------------------------------------------
172 //-------------------------------------------------------------------------
185 //-------------------------------------------------------------------------
198 //-------------------------------------------------------------------------
208 #if defined(_MSC_VER) || defined(__MINGW32__)
209 std::wstring m_sFileNameFilter;
210 #else
211 std::string m_sFileNameFilter;
212 #endif // defined(_MSC_VER) || defined(__MINGW32__)
213 //-------------------------------------------------------------------------
223 #if defined(_MSC_VER) || defined(__MINGW32__)
225 #else
226 std::string m_sFileExtensionFilter;
227 #endif // defined(_MSC_VER) || defined(__MINGW32__)
228 //-------------------------------------------------------------------------
238 std::string m_sLanguage;
239 //-------------------------------------------------------------------------
240
241 public:
242 //============== Konstruktoren ============
243 //-------------------------------------------------------------------------
341 #if defined(_MSC_VER) || defined(__MINGW32__)
342 EfcApp( const std::vector<std::wstring> & rArgVector );
343 #else
344 EfcApp( const std::vector<std::string> & rArgVector );
345 #endif // defined(_MSC_VER) || defined(__MINGW32__)
346 //-------------------------------------------------------------------------
356 virtual ~EfcApp();
357 //-------------------------------------------------------------------------
358
359 private:
360 //-------------------------------------------------------------------------
371 //-------------------------------------------------------------------------
381 EfcApp( const EfcApp & );
382 //-------------------------------------------------------------------------
383
384 public:
385 //============== Methoden
386 //-------------------------------------------------------------------------
404 int exec();
405 //-------------------------------------------------------------------------
406
407 private:
408 //============== Methoden
409 //-------------------------------------------------------------------------
425 void showResult( int iResultCode, const std::string & rsCurrentFile );
426 //-------------------------------------------------------------------------
436 void showHelp();
437 //-------------------------------------------------------------------------
459 #if defined(_MSC_VER) || defined(__MINGW32__)
460 void getFileNameAndExtension( std::wstring & rsFileName,
461 std::wstring & rsExtension,
462 const fs::path & rFileSystemPath );
463 #else // not defined(_MSC_VER) || defined(__MINGW32__)
464 void getFileNameAndExtension( std::string & rsFileName,
465 std::string & rsExtension,
466 const fs::path & rFileSystemPath );
467 #endif // defined(_MSC_VER) || defined(__MINGW32__)
468 //-------------------------------------------------------------------------
469
470 private:
471 //============== Operatoren
472 //-------------------------------------------------------------------------
483 //-------------------------------------------------------------------------
484};
485//-----------------------------------------------------------------------------
486#ifdef _MSC_VER
487 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
488 #pragma warning( default : 4251 )
489#endif
490//-----------------------------------------------------------------------------
491#endif
Für jede Applikation, hier 'efc' gibt es eine Typen-Datei.
Header für FileHelper
Klasse um gefundene Dateien zu bearbeite; wird an eut::FileHelper::iterateDirectory( const fs::path &...
Definition EfcApp.h:80
virtual void processFileFount(const fs::path &rFullFileName)
EfcApp * m_pParent
Definition EfcApp.h:93
EfcCallBackFileFount(EfcApp &rEfcApp)
Die Applikationsklasse von ExchangeFileContents.
Definition EfcApp.h:61
int m_iVerboseMode
Definition EfcApp.h:171
void showResult(int iResultCode, const std::string &rsCurrentFile)
std::wstring m_sFileNameFilter
Definition EfcApp.h:209
void showHelp()
virtual ~EfcApp()
EfcApp & operator=(const EfcApp &)
EfcApp(const EfcApp &)
std::vector< std::wstring > m_ParaVector
Definition EfcApp.h:151
bool m_bStopOnError
Definition EfcApp.h:184
EfcApp(const std::vector< std::wstring > &rArgVector)
void getFileNameAndExtension(std::wstring &rsFileName, std::wstring &rsExtension, const fs::path &rFileSystemPath)
std::wstring m_sFileExtensionFilter
Definition EfcApp.h:224
std::string m_sLanguage
Definition EfcApp.h:238
int exec()
bool m_bSimulate
Definition EfcApp.h:197
Definition EuFileHelper.h:999