00001 /* 00002 * Copyright (C) 1991-9 Eric M. Hopper <hopper@omnifarious.mn.org> 00003 * 00004 * This program is free software; you can redistribute it and/or modify it 00005 * under the terms of the GNU Lesser General Public License as published 00006 * by the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, but 00010 * WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 00017 */ 00018 00019 /* $Header: /home/hopper/src/cvs/C++/StrMod/BufferChunk.cxx,v 1.7 2002/08/29 00:58:04 hopper Exp $ */ 00020 00021 // For a log, see ChangeLog 00022 00023 #ifdef __GNUG__ 00024 # pragma implementation "BufferChunk.h" 00025 #endif 00026 00027 #include "StrMod/BufferChunk.h" 00028 #include <iostream> 00029 #include <cassert> 00030 00031 namespace strmod { 00032 namespace strmod { 00033 00034 const STR_ClassIdent BufferChunk::identifier(24UL); 00035 00036 lcore::U1Byte BufferChunk::junk_; 00037 00038 void BufferChunk::acceptVisitor(ChunkVisitor &visitor) 00039 throw(ChunkVisitor::halt_visitation) 00040 { 00041 call_visitDataBlock(visitor, getVoidP(), buflen_); 00042 } 00043 00044 void BufferChunk::printState(std::ostream &os) const 00045 { 00046 os << "BufferChunk(buf_ == " << buf_ << ", buflen_ == " << buflen_ << ")"; 00047 } 00048 00049 }; // End namespace strmod 00050 }; // End namespace strmod
1.3-rc1