eckit::net::Connector class

Base classes

class eckit::Stream

Public static functions

static auto service(const NodeInfo& node) -> Connector&
static auto service(const std::string& name, const std::string& node) -> Connector&
static auto nodeInfo(const std::string& name, const std::string& node) -> NodeInfo
static void dump(std::ostream&, const char*, size_t)

Constructors, destructors, conversion operators

Connector(const std::string& name, const std::string& node)
~Connector()

Public functions

void lock()
void unlock()
void reset()
void check()
auto locked() const -> bool
auto host() const -> const std::string&
auto node() const -> const std::string&
void autoclose(bool on)
void memoize(bool on, unsigned long time)
auto operator<<(char) -> Stream&
auto operator<<(unsigned char) -> Stream&
auto operator<<(bool) -> Stream&
auto operator<<(int) -> Stream&
auto operator<<(unsigned int) -> Stream&
auto operator<<(short) -> Stream&
auto operator<<(unsigned short) -> Stream&
auto operator<<(long) -> Stream&
auto operator<<(unsigned long) -> Stream&
auto operator<<(long long) -> Stream&
auto operator<<(unsigned long long) -> Stream&
auto operator<<(float) -> Stream&
auto operator<<(double) -> Stream&
auto operator<<(const std::string&) -> Stream&
auto operator<<(const char*) -> Stream&
auto operator<<(const std::exception&) -> Stream&
auto operator<<(const Buffer&) -> Stream&
auto operator>>(char&) -> Stream&
auto operator>>(unsigned char&) -> Stream&
auto operator>>(int&) -> Stream&
auto operator>>(unsigned int&) -> Stream&
auto operator>>(bool&) -> Stream&
auto operator>>(long&) -> Stream&
auto operator>>(unsigned long&) -> Stream&
auto operator>>(long long&) -> Stream&
auto operator>>(unsigned long long&) -> Stream&
auto operator>>(short&) -> Stream&
auto operator>>(unsigned short&) -> Stream&
auto operator>>(float&) -> Stream&
auto operator>>(double&) -> Stream&
auto operator>>(std::string&) -> Stream&
auto operator>>(Buffer&) -> Stream&
auto operator>>(std::map<std::string, std::string>&) -> Stream&
auto next(std::string&) -> bool
auto next(bool&) -> bool
auto next(int&) -> bool
auto next() -> bool
auto endObjectFound() -> bool
void skipEndObject()
void startObject()
void endObject()
void writeBlob(const void*, size_t)
void readBlob(void*, size_t)
void writeLargeBlob(const void*, size_t)
void readLargeBlob(void*, size_t)
void rewind() virtual
void closeOutput() virtual
void closeInput() virtual
auto bytesWritten() -> long long
void resetBytesWritten()
void startRecord(unsigned long)
void endRecord()
auto nextRecord(unsigned long&, bool sync = false) -> bool

Public variables

const char* buffer_
size_t pos_
size_t size_

Private functions

void print(std::ostream&) const override
auto write(const void* buf, long len) -> long override
auto read(void* buf, long len) -> long override
auto name() const -> std::string override

Friends

auto operator<<(std::ostream& s, const Connector& p) -> std::ostream&

Function documentation

static void eckit::net::Connector::dump(std::ostream&, const char*, size_t)

Stream& eckit::net::Connector::operator<<(char)

Stream& eckit::net::Connector::operator<<(unsigned char)

Stream& eckit::net::Connector::operator<<(bool)

Stream& eckit::net::Connector::operator<<(int)

Stream& eckit::net::Connector::operator<<(unsigned int)

Stream& eckit::net::Connector::operator<<(short)

Stream& eckit::net::Connector::operator<<(unsigned short)

Stream& eckit::net::Connector::operator<<(long)

Stream& eckit::net::Connector::operator<<(unsigned long)

Stream& eckit::net::Connector::operator<<(long long)

Stream& eckit::net::Connector::operator<<(unsigned long long)

Stream& eckit::net::Connector::operator<<(float)

Stream& eckit::net::Connector::operator<<(double)

Stream& eckit::net::Connector::operator<<(const std::string&)

Stream& eckit::net::Connector::operator<<(const char*)

Stream& eckit::net::Connector::operator<<(const std::exception&)

Stream& eckit::net::Connector::operator<<(const Buffer&)

Stream& eckit::net::Connector::operator>>(char&)

Stream& eckit::net::Connector::operator>>(unsigned char&)

Stream& eckit::net::Connector::operator>>(int&)

Stream& eckit::net::Connector::operator>>(unsigned int&)

Stream& eckit::net::Connector::operator>>(bool&)

Stream& eckit::net::Connector::operator>>(long&)

Stream& eckit::net::Connector::operator>>(unsigned long&)

Stream& eckit::net::Connector::operator>>(long long&)

Stream& eckit::net::Connector::operator>>(unsigned long long&)

Stream& eckit::net::Connector::operator>>(short&)

Stream& eckit::net::Connector::operator>>(unsigned short&)

Stream& eckit::net::Connector::operator>>(float&)

Stream& eckit::net::Connector::operator>>(double&)

Stream& eckit::net::Connector::operator>>(std::string&)

Stream& eckit::net::Connector::operator>>(Buffer&)

bool eckit::net::Connector::next(std::string&)

bool eckit::net::Connector::next(bool&)

bool eckit::net::Connector::next(int&)

bool eckit::net::Connector::next()

bool eckit::net::Connector::endObjectFound()

void eckit::net::Connector::skipEndObject()

void eckit::net::Connector::startObject()

void eckit::net::Connector::endObject()

void eckit::net::Connector::writeBlob(const void*, size_t)

void eckit::net::Connector::readBlob(void*, size_t)

void eckit::net::Connector::writeLargeBlob(const void*, size_t)

void eckit::net::Connector::readLargeBlob(void*, size_t)

void eckit::net::Connector::rewind() virtual

void eckit::net::Connector::closeOutput() virtual

void eckit::net::Connector::closeInput() virtual

long long eckit::net::Connector::bytesWritten()

void eckit::net::Connector::resetBytesWritten()

void eckit::net::Connector::startRecord(unsigned long)

void eckit::net::Connector::endRecord()

bool eckit::net::Connector::nextRecord(unsigned long&, bool sync = false)