1 /* $XConsortium: EntityApp.h /main/1 1996/07/29 16:50:06 cde-hp $ */
2 // Copyright (c) 1996 James Clark
3 // See the file COPYING for copying permission.
5 #ifndef EntityApp_INCLUDED
6 #define EntityApp_INCLUDED 1
12 #include "CmdLineApp.h"
13 #include "CharsetInfo.h"
15 #include "ExtendEntityManager.h"
18 namespace SP_NAMESPACE {
21 class SP_API EntityApp : public CmdLineApp {
24 void processOption(AppChar opt, const AppChar *arg);
25 virtual int processSysid(const StringC &) = 0;
26 int processArguments(int argc, AppChar **files);
27 Boolean makeSystemId(int nFiles, AppChar *const *files, StringC &result);
28 Ptr<ExtendEntityManager> &entityManager();
30 void clearEntityManager();
31 CharsetInfo systemCharset_;
33 Vector<const AppChar *> searchDirs_;
34 Vector<const AppChar *> catalogSysids_;
35 Boolean mapCatalogDocument_;
36 Ptr<ExtendEntityManager> entityManager_;
40 void EntityApp::clearEntityManager()
42 entityManager_.clear();
49 #endif /* not EntityApp_INCLUDED */