📄 coder_pipe.h
字号:
/*******************************************************************************++ LEDA 4.5 +++ coder_pipe.h+++ Copyright (c) 1995-2004+ by Algorithmic Solutions Software GmbH+ All rights reserved.+ *******************************************************************************/// $Revision: 1.11 $ $Date: 2004/02/06 11:18:56 $#ifndef _LEDA_CODER_PIPE_H#define _LEDA_CODER_PIPE_H#if !defined(LEDA_ROOT_INCL_ID)#define LEDA_ROOT_INCL_ID 450354#include <LEDA/PREAMBLE.h>#endif#include <LEDA/impl/coder_base.h>#include <LEDA/impl/coder_strbuf_adapter.h>LEDA_BEGIN_NAMESPACEclass __exportC coder_pipe : public coder_base {public: typedef coder_base base; enum { ID = 0x434c0b };public: coder_pipe(unsigned num_coders = 1); ~coder_pipe(); virtual void reset(); // same state as the default ctor, but keeps all coders virtual string get_description() const; virtual bool is_single_pass_encoder() const; virtual bool is_standalone_coder() const { return false; }protected: coder_base* get_coder(unsigned coder_idx) const; void set_coder(unsigned coder_idx, coder_base* coder, bool own_coder = false);protected: virtual const char* get_class_name() const { return "coder_pipe"; } virtual id_type get_id() const { return ID; } virtual void write_id_to_tgt_stream(); virtual void read_and_check_id_in_src_stream(); virtual void finish_construction_from_stream(id_type id_in_stream, streambuf* stream); virtual void init_encoding(); virtual void encode_stream(); virtual void encoding_finished(); virtual void init_decoding(); virtual void decode_stream(); virtual void decoding_finished(); private: coder_base* get_coder1() const { return pCoder1; } void set_coder1(coder_base* c1, bool own_coder = false);private: unsigned NumberOfCoders; coder_base* pCoder1; coder_strbuf_adapter* AdaptersForCoders; bool OwnCoder1;};#if LEDA_ROOT_INCL_ID == 450354#undef LEDA_ROOT_INCL_ID#include <LEDA/POSTAMBLE.h>#endifLEDA_END_NAMESPACE#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -