DataStream.hpp
Go to the documentation of this file.
1 #pragma once
2 
5 #include "SingularResource.hpp"
6 
7 #include <string>
8 #include <vector>
9 
10 namespace iv
11 {
12 
14 {
15 public:
18 };
19 
23 class DataStream : private StreamResource
24 {
25 public:
28 
29  DataStream( Instance * inst, StreamResourceProvider const * provider, DataStream_Subprovider const *, ResourcePath const & path );
30 
31  ResourcePath path() const;
32  void with_stream( std::function< void( std::istream & ) > const & ) const;
33 };
34 
35 
36 class DataStream_Resource : public SingularResource< DataStream >
37 {
38 public:
41  SingularResource< DataStream >( inst, path ),
42  cm( inst, this, "DataStream_Resource" )
43  {
45  }
46 };
47 
48 }