/usr/include/sp/GroveApp.h is in libsp1-dev 1.3.4-1.2.1-47.3ubuntu1.
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 | // Copyright (c) 1996 James Clark
// See the file COPYING for copying permission.
#ifndef GroveApp_INCLUDED
#define GroveApp_INCLUDED 1
#ifdef __GNUG__
#pragma interface
#endif
#include "ParserApp.h"
#include "GroveBuilder.h"
#include "HashTable.h"
#ifdef SP_NAMESPACE
namespace SP_NAMESPACE {
#endif
class SPGROVE_API GroveApp : public ParserApp {
public:
GroveApp(const char *requiredCodingSystem = 0);
ErrorCountEventHandler *makeEventHandler();
int generateEvents(ErrorCountEventHandler *eceh);
virtual void processGrove() = 0;
class GenerateEventArgs {
public:
int run() { return app_->inheritedGenerateEvents(eceh_); }
private:
GenerateEventArgs(ErrorCountEventHandler *eceh, GroveApp *app)
: app_(app), eceh_(eceh) { }
ErrorCountEventHandler *eceh_;
GroveApp *app_;
friend class GroveApp;
};
friend class GenerateEventArgs;
void dispatchMessage(const Message &);
protected:
GROVE_NAMESPACE_SCOPE NodePtr rootNode_;
private:
int inheritedGenerateEvents(ErrorCountEventHandler *eceh) {
return ParserApp::generateEvents(eceh);
}
};
inline
OutputCharStream &operator<<(OutputCharStream &os,
#ifdef GROVE_NAMESPACE
GROVE_NAMESPACE::
#endif
GroveString &str)
{
return os.write(str.data(), str.size());
}
#ifdef SP_NAMESPACE
}
#endif
#endif /* not GroveApp_INCLUDED */
|