/* generic input class Copyright (C) 1999 Martin Vogt This program is free software; you can redistribute it and/or modify it under the terms of the GNU Library General Public License as published by the Free Software Foundation. For more information look at the file COPYRIGHT in this package */ #include "inputStream.h" #include "../util/mmx/mmx.h" #include using namespace std; InputStream::InputStream() { timeStampArray=new TimeStampArray((char*)"Input",3000); urlBuffer=new DynBuffer(20); // we call mm_support() here because it is the only position // where we gurantee that not threads are // running (the call is not thread safe) // afer the call we never execute the asm part again // and everything is fine mm_support(); } InputStream::~InputStream() { delete timeStampArray; delete urlBuffer; } int InputStream::open(const char* dest) { cout << "direct virtual call InputStream::open:"<insertTimeStamp(src,key,len); } TimeStamp* InputStream::getTimeStamp(long key) { return timeStampArray->getTimeStamp(key); } int InputStream::bytesUntilNext(long key) { return timeStampArray->bytesUntilNext(key); } void InputStream::print() { cout << "direct virtual call InputStream::print"<getData(); } void InputStream::setUrl(const char* url) { urlBuffer->clear(); if (url != NULL) { urlBuffer->append(url); } }