1
// Copyright (c) 1995 James Clark
2
// See the file COPYING for copying permission.
4
#ifndef EntityManager_INCLUDED
5
#define EntityManager_INCLUDED 1
14
#include "EntityCatalog.h"
19
namespace SP_NAMESPACE {
23
class InputSourceOrigin;
27
class SP_API EntityManager : public Resource {
29
enum { mayRewind = 01, maySetDocCharset = 02 };
30
virtual ~EntityManager();
31
virtual Boolean internalCharsetIsDocCharset() const = 0;
32
virtual const CharsetInfo &charset() const = 0;
33
virtual InputSource *open(const StringC &sysid,
34
const CharsetInfo &docCharset,
38
// Make a catalog for a document or subdocument with specified
40
// The catalog can cause the system identifier to be replaced.
41
virtual ConstPtr<EntityCatalog>
42
makeCatalog(StringC &systemId, const CharsetInfo &, Messenger &) = 0;
49
#endif /* not EntityManager_INCLUDED */