?? iportfromram.h
字號:
/* Copyright (C) 1995, Tektronix Inc. All Rights Reserved. * * Usage Restrictions * * License is granted to copy, to use, and to make and to use derivative * works for research and evaluation purposes only. * * Disclaimer of Warranty * * These software programs are available to the user without any license * fee or royalty on an "as is" basis. Tektronix Inc. disclaims any and * all warranties, whether express, implied, or statuary, including any * implied warranties or merchantability or of fitness for a particular * purpose. In no event shall the copyright-holder be liable for any * incidental, punitive, or consequential damages of any kind whatsoever * arising from the use of these programs. * * This disclaimer of warranty extends to the user of these programs and * user's customers, employees, agents, transferees, successors, and * assigns. * * The Tektronix Inc. does not represent or warrant that the programs * furnished hereunder are free of infringement of any third-party * patents.*//* IPortFromRam is an InputPort that reads bits from a ram buffer */#ifndef iportfromram_h#define iportfromram_h#include "InputPort.H"class IPortFromRam : public InputPort{public: IPortFromRam (char*, int);protected: virtual char input_bit (); virtual char input_byte (); private: char* bits; int bits_length; int bits_ptr; char byte; int pos; int inc_bit (); char bit2char ();};/* DOCUMENTATION IPortFromRam is a subclass of InputPort. It provides implementations for the two virtual funtions input_bit and input_byte and, except for constructors, its public interface is inherited from the base class. When the port is constructed a buffer and buffer length is specified. Data is pulled from the buffer as the port is read. When the end of the buffer is reached subsequent reads loop back to the beginning. Public methods are: IPortFromRam (char*, int); The first argument specifies a buffer. The second argument specifies its length.*/#endif
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -