MICO Platform
 All Classes Namespaces Functions Variables Friends
Asset.hpp
1 #ifndef ASSET_HPP
2 #define ASSET_HPP 1
3 
4 #include <string>
5 #include <iostream>
6 
7 namespace mico {
8 
9  namespace persistence {
10  namespace model {
11 
12  class URI;
13 
14  class Asset
15  {
16  public:
22 
28 
29  virtual std::string getFormat() = 0;
30 
31  virtual void setFormat(std::string format) = 0;
32 
38  virtual std::ostream* getOutputStream() = 0;
39 
45  virtual std::istream* getInputStream() = 0;
46  };
47  }
48  }
49 }
50 #endif
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in c...
Definition: http_client.cpp:23
virtual mico::persistence::model::URI getURI()=0
getURI Retrieves the unique identifcation URI for this asset
Definition: Asset.hpp:14
virtual std::ostream * getOutputStream()=0
Return a new output stream for writing to the content.
virtual mico::persistence::model::URI getLocation()=0
getLocation Retrieves the storage location of this asset (should be suffixed by .bin) ...
virtual std::istream * getInputStream()=0
Return a new input stream for reading the content.
A URI.
Definition: Uri.hpp:22