outputprotocol.h
来自「一个语言识别引擎」· C头文件 代码 · 共 51 行
H
51 行
// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
/*
* Copyright (C) 2006 Paul Fitzpatrick
* CopyPolicy: Released under the terms of the GNU GPL v2.0.
*
*/
#ifndef _YARP2_OUTPUTPROTOCOL_
#define _YARP2_OUTPUTPROTOCOL_
#include <yarp/Route.h>
#include <yarp/os/ConnectionWriter.h>
#include <yarp/SizedWriter.h>
namespace yarp {
class OutputProtocol;
class InputProtocol;
}
/**
* The output side of an active connection between two ports.
*/
class yarp::OutputProtocol {
public:
// all can throw IOException
virtual ~OutputProtocol() {}
virtual void open(const Route& route) = 0;
virtual void close() = 0;
virtual const Route& getRoute() = 0;
virtual bool isActive() = 0;
virtual bool isTextMode() = 0;
virtual bool isConnectionless() = 0;
virtual bool checkStreams() = 0;
virtual void write(SizedWriter& writer) = 0;
// some connections are capable of ping-ponging
virtual InputProtocol& getInput() = 0;
// direct access
virtual OutputStream& getOutputStream() = 0;
virtual InputStream& getInputStream() = 0;
};
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?