Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
46
cde/programs/nsgmls/InternalInputSource.h
Normal file
46
cde/programs/nsgmls/InternalInputSource.h
Normal file
@@ -0,0 +1,46 @@
|
||||
/* $XConsortium: InternalInputSource.h /main/1 1996/07/29 16:55:29 cde-hp $ */
|
||||
// Copyright (c) 1994 James Clark
|
||||
// See the file COPYING for copying permission.
|
||||
|
||||
#ifndef InternalInputSource_INCLUDED
|
||||
#define InternalInputSource_INCLUDED 1
|
||||
#ifdef __GNUG__
|
||||
#pragma interface
|
||||
#endif
|
||||
|
||||
#include <stddef.h>
|
||||
#include "InputSource.h"
|
||||
#include "Allocator.h"
|
||||
#include "StringC.h"
|
||||
#include "types.h"
|
||||
|
||||
#ifdef SP_NAMESPACE
|
||||
namespace SP_NAMESPACE {
|
||||
#endif
|
||||
|
||||
class InputSourceOrigin;
|
||||
class Messenger;
|
||||
class NamedCharRef;
|
||||
|
||||
class InternalInputSource : public InputSource {
|
||||
public:
|
||||
void *operator new(size_t sz, Allocator &alloc) { return alloc.alloc(sz); }
|
||||
void *operator new(size_t sz) { return Allocator::allocSimple(sz); }
|
||||
void operator delete(void *p) { Allocator::free(p); }
|
||||
InternalInputSource(const StringC &, InputSourceOrigin *);
|
||||
Xchar fill(Messenger &);
|
||||
void pushCharRef(Char ch, const NamedCharRef &);
|
||||
Boolean rewind(Messenger &);
|
||||
~InternalInputSource();
|
||||
private:
|
||||
InternalInputSource(const InternalInputSource &); // undefined
|
||||
void operator=(const InternalInputSource &); // undefined
|
||||
Char *buf_;
|
||||
const StringC *contents_;
|
||||
};
|
||||
|
||||
#ifdef SP_NAMESPACE
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* not InternalInputSource_INCLUDED */
|
||||
Reference in New Issue
Block a user