ExchangeFileContents
Lade ...
Suche ...
Keine Treffer
EfcApp.h
gehe zur Dokumentation dieser Datei
1#ifndef INC_EFCAPP_H
2#define INC_EFCAPP_H
3//-----------------------------------------------------------------------------
33//-----------------------------------------------------------------------------
34// Forwards
35//-----------------------------------------------------------------------------
36#include "EfcTypes.h"
37#include "EuFileHelper.h"
38#include <string>
39#include <vector>
40//-----------------------------------------------------------------------------
41#ifdef _MSC_VER
42 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
43 #pragma warning( disable : 4251 )
44#endif
45//-----------------------------------------------------------------------------
56class EfcApp
57{
58 private:
59 //-------------------------------------------------------------------------
60 // >>>>>>>>>>>>>>>>>>>>> EfcCallBackFileFount >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
61 //-------------------------------------------------------------------------
76 {
77 private:
78 //============== Attributes
79 //---------------------------------------------------------------------
90 //---------------------------------------------------------------------
91
92 public:
93 //============== Constructors
94 //---------------------------------------------------------------------
107 //---------------------------------------------------------------------
108
109 //============== Methodes
110 //---------------------------------------------------------------------
128 virtual void processFileFount( const fs::path & rFullFileName );
129 //---------------------------------------------------------------------
130 };
131 //-------------------------------------------------------------------------
132 // <<<<<<<<<<<<<<<<<<<<< EfcCallBackFileFount <<<<<<<<<<<<<<<<<<<<<<<<<<<<<
133 //-------------------------------------------------------------------------
134 private:
135 //============== Attribute ============
136 //-------------------------------------------------------------------------
146 #if defined(_MSC_VER) || defined(__MINGW32__)
147 std::vector<std::wstring> m_ParaVector;
148 #else
149 std::vector<std::string> m_ParaVector;
150 #endif // defined(_MSC_VER) || defined(__MINGW32__)
151 //-------------------------------------------------------------------------
168 //-------------------------------------------------------------------------
181 //-------------------------------------------------------------------------
194 //-------------------------------------------------------------------------
204 #if defined(_MSC_VER) || defined(__MINGW32__)
205 std::wstring m_sFileNameFilter;
206 #else
207 std::string m_sFileNameFilter;
208 #endif // defined(_MSC_VER) || defined(__MINGW32__)
209 //-------------------------------------------------------------------------
219 #if defined(_MSC_VER) || defined(__MINGW32__)
221 #else
222 std::string m_sFileExtensionFilter;
223 #endif // defined(_MSC_VER) || defined(__MINGW32__)
224 //-------------------------------------------------------------------------
234 std::string m_sLanguage;
235 //-------------------------------------------------------------------------
236
237 public:
238 //============== Konstruktoren ============
239 //-------------------------------------------------------------------------
337 #if defined(_MSC_VER) || defined(__MINGW32__)
338 EfcApp( const std::vector<std::wstring> & rArgVector );
339 #else
340 EfcApp( const std::vector<std::string> & rArgVector );
341 #endif // defined(_MSC_VER) || defined(__MINGW32__)
342 //-------------------------------------------------------------------------
352 virtual ~EfcApp();
353 //-------------------------------------------------------------------------
354
355 private:
356 //-------------------------------------------------------------------------
367 //-------------------------------------------------------------------------
377 EfcApp( const EfcApp & );
378 //-------------------------------------------------------------------------
379
380 public:
381 //============== Methoden
382 //-------------------------------------------------------------------------
400 int exec();
401 //-------------------------------------------------------------------------
402
403 private:
404 //============== Methoden
405 //-------------------------------------------------------------------------
421 void showResult( int iResultCode, const std::string & rsCurrentFile );
422 //-------------------------------------------------------------------------
432 void showHelp();
433 //-------------------------------------------------------------------------
455 #if defined(_MSC_VER) || defined(__MINGW32__)
456 void getFileNameAndExtension( std::wstring & rsFileName,
457 std::wstring & rsExtension,
458 const fs::path & rFileSystemPath );
459 #else // not defined(_MSC_VER) || defined(__MINGW32__)
460 void getFileNameAndExtension( std::string & rsFileName,
461 std::string & rsExtension,
462 const fs::path & rFileSystemPath );
463 #endif // defined(_MSC_VER) || defined(__MINGW32__)
464 //-------------------------------------------------------------------------
465
466 private:
467 //============== Operatoren
468 //-------------------------------------------------------------------------
479 //-------------------------------------------------------------------------
480};
481//-----------------------------------------------------------------------------
482#ifdef _MSC_VER
483 /* 'Bezeichner': Klasse 'Typ' benötigt eine DLL-Schnittstelle, die von... */
484 #pragma warning( default : 4251 )
485#endif
486//-----------------------------------------------------------------------------
487#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:76
virtual void processFileFount(const fs::path &rFullFileName)
EfcApp * m_pParent
Definition EfcApp.h:89
EfcCallBackFileFount(EfcApp &rEfcApp)
Die Applikationsklasse von ExchangeFileContents.
Definition EfcApp.h:57
int m_iVerboseMode
Definition EfcApp.h:167
void showResult(int iResultCode, const std::string &rsCurrentFile)
std::wstring m_sFileNameFilter
Definition EfcApp.h:205
void showHelp()
virtual ~EfcApp()
EfcApp & operator=(const EfcApp &)
EfcApp(const EfcApp &)
std::vector< std::wstring > m_ParaVector
Definition EfcApp.h:147
bool m_bStopOnError
Definition EfcApp.h:180
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:220
std::string m_sLanguage
Definition EfcApp.h:234
int exec()
bool m_bSimulate
Definition EfcApp.h:193
Definition EuFileHelper.h:1014