1 // Copyright (c) 1996 James Clark
2 // See the file COPYING for copying permission.
4 #ifndef EntityApp_INCLUDED
5 #define EntityApp_INCLUDED 1
11 #include "CmdLineApp.h"
12 #include "CharsetInfo.h"
14 #include "ExtendEntityManager.h"
17 namespace SP_NAMESPACE {
20 class SP_API EntityApp : public CmdLineApp {
22 EntityApp(const char *requiredInternalCode = 0);
23 void processOption(AppChar opt, const AppChar *arg);
24 virtual int processSysid(const StringC &) = 0;
25 int processArguments(int argc, AppChar **files);
26 Boolean makeSystemId(int nFiles, AppChar *const *files, StringC &result);
27 Ptr<ExtendEntityManager> &entityManager();
29 void clearEntityManager();
31 Vector<const AppChar *> searchDirs_;
32 Vector<const AppChar *> catalogSysids_;
33 Boolean mapCatalogDocument_;
34 Boolean restrictFileReading_;
35 Ptr<ExtendEntityManager> entityManager_;
39 void EntityApp::clearEntityManager()
41 resetCodingSystemKit();
42 entityManager_.clear();
49 #endif /* not EntityApp_INCLUDED */