/usr/include/OpenSP/EntityDecl.h is in libosp-dev 1.5.2-13ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 | // Copyright (c) 1995 James Clark
// See the file COPYING for copying permission.
#ifndef EntityDecl_INCLUDED
#define EntityDecl_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "NamedResource.h"
#include "Ptr.h"
#include "StringResource.h"
#include "Location.h"
#include "types.h"
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
class SP_API EntityDecl : public NamedResource {
public:
enum DeclType { generalEntity, parameterEntity, doctype, linktype,
notation, sgml };
enum DataType { sgmlText, pi, cdata, sdata, ndata, subdoc };
EntityDecl(const StringC &, DeclType declType, DataType dataType,
const Location &defLocation);
DataType dataType() const;
DeclType declType() const;
const Location &defLocation() const;
Boolean declInDtdIsBase() const;
Boolean declInActiveLpd() const;
const StringC *declInDtdNamePointer() const;
const StringC *declInLpdNamePointer() const;
void setDeclIn(const ConstPtr<StringResource<Char> > &dtdName,
Boolean dtdIsBase,
const ConstPtr<StringResource<Char> > &lpdName,
Boolean lpdIsActive);
void setDeclIn(const ConstPtr<StringResource<Char> > &dtdName,
Boolean dtdIsBase);
void setDefLocation(const Location &);
virtual const StringC *systemIdPointer() const;
virtual const StringC *publicIdPointer() const;
virtual const StringC *effectiveSystemIdPointer() const;
private:
DeclType declType_;
DataType dataType_;
PackedBoolean dtdIsBase_;
PackedBoolean lpdIsActive_;
Location defLocation_;
ConstPtr<StringResource<Char> > dtdName_;
ConstPtr<StringResource<Char> > lpdName_;
};
inline
const Location &EntityDecl::defLocation() const
{
return defLocation_;
}
inline
EntityDecl::DeclType EntityDecl::declType() const
{
return declType_;
}
inline
EntityDecl::DataType EntityDecl::dataType() const
{
return dataType_;
}
inline
const StringC *EntityDecl::declInDtdNamePointer() const
{
return dtdName_.pointer();
}
inline
const StringC *EntityDecl::declInLpdNamePointer() const
{
return lpdName_.pointer();
}
inline
Boolean EntityDecl::declInDtdIsBase() const
{
return dtdIsBase_;
}
inline
Boolean EntityDecl::declInActiveLpd() const
{
return lpdIsActive_;
}
inline
void EntityDecl::setDefLocation(const Location &loc)
{
defLocation_ = loc;
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not EntityDecl_INCLUDED */
|