DataStream.cpp
Go to the documentation of this file.
1 #include "DataStream.hpp"
2 
3 namespace iv
4 {
5 
7  Plain_StreamResourceSubprovider( inst, provider, "data" ),
8  cm( inst, this, "DataStream_Subprovider" )
9 {
11 }
12 
14  StreamResource( inst, provider, path ),
15  cm( inst, this, "DataStream" )
16 {
17  this->cm.inherits( this->StreamResource::cm );
18 }
19 
21 {
22  return this->resource_path();
23 }
24 
25 void DataStream::with_stream( std::function< void( std::istream & ) > const & f ) const
26 {
27  Resource_LogTrace _trace( this->resource_path() );
28  this->with_resource_stream( f );
29 }
30 
31 }