summaryrefslogtreecommitdiff
path: root/src/RewindInputStream.hpp
blob: 9daafe4197f197fe83aeb4cdfb22cd547e6477e6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#ifndef __REWIND_INPUT_STREAM_H
#define __REWIND_INPUT_STREAM_H

#include "URL.hpp"

#include <iostream>

class RewindInputStream : public std::istream {
	public:
		RewindInputStream( const URL &url )
			: m_baseUrl( url )
		{
		}
		
		const URL getBaseUrl( ) const
		{
			return m_baseUrl;
		}
		
	private:
		URL m_baseUrl;
};

#endif