libkazv
|
#include <file-desc.hpp>
Public Member Functions | |
FileDesc (FileContent content) | |
Construct an in-memory FileDesc with content . More... | |
FileDesc (std::string name, std::optional< std::string > contentType=std::nullopt) | |
Construct a FileDesc with name and contentType . More... | |
FileProvider | provider (const FileInterface &fh) const |
Get the FileProvider for this FileDesc using FileInterface. More... | |
std::optional< std::string > | name () const |
Get the name for this FileDesc. More... | |
std::optional< std::string > | contentType () const |
Get the content type for this FileDesc. More... | |
bool | operator== (const FileDesc &that) const |
|
inlineexplicit |
Construct an in-memory FileDesc with content
.
|
inlineexplicit |
Construct a FileDesc with name
and contentType
.
|
inline |
Get the content type for this FileDesc.
|
inline |
Get the name for this FileDesc.
bool Kazv::FileDesc::operator== | ( | const FileDesc & | that | ) | const |
FileProvider Kazv::FileDesc::provider | ( | const FileInterface & | fh | ) | const |
Get the FileProvider for this FileDesc using FileInterface.
If this is an in-memory file, this will always return a DumbFileProvider. Otherwise, it will return what fh.getProviderFor(*this)
returns.