/usr/include/libecap/host/host.h is in libecap3-dev 1.0.1-3ubuntu3.
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 | /* (C) 2008 The Measurement Factory */
#ifndef LIBECAP__HOST__HOST_H
#define LIBECAP__HOST__HOST_H
#include <libecap/common/forward.h>
#include <libecap/common/memory.h>
#include <libecap/common/log.h>
#include <string>
#include <iosfwd>
namespace libecap {
namespace host {
// Host-provided actions that are not specific to a single eCAP transaction.
class Host {
public:
virtual ~Host() {}
// About
virtual std::string uri() const = 0; // unique across all vendors
virtual void describe(std::ostream &os) const = 0; // free-format info
// Service management
virtual void noteVersionedService(const char *libEcapVersion, const weak_ptr<adapter::Service> &s) = 0;
// Logging
virtual std::ostream *openDebug(LogVerbosity lv) = 0;
virtual void closeDebug(std::ostream *debug) = 0;
// Fresh message creation, when Message::clone() is not appropriate
virtual shared_ptr<Message> newRequest() const = 0;
virtual shared_ptr<Message> newResponse() const = 0;
};
} // namespace host
} // namespace libecap
#endif
|