48 [[nodiscard]]
virtual std::optional<std::string>
Md5()
const = 0;
56 virtual void FileName(
const std::string& filename) = 0;
63 [[nodiscard]]
virtual const std::string&
FileName()
const = 0;
70 virtual void FileType(
const std::string& file_type) = 0;
77 [[nodiscard]]
virtual const std::string&
FileType()
const = 0;
Interface against an attached file.
Definition iattachment.h:21
virtual ~IAttachment() override=default
Default destructor.
virtual void CreatorIndex(uint16_t creator)=0
Sets the Creator index.
virtual uint16_t CreatorIndex() const =0
Returns the creator index.
virtual void FileName(const std::string &filename)=0
Sets the filename. Include path.
virtual void IsEmbedded(bool embed)=0
Set true if embedded.
virtual bool IsEmbedded() const =0
True if embedded.
virtual bool IsCompressed() const =0
True if compressed.
virtual void FileType(const std::string &file_type)=0
Sets the MIME type of the file.
virtual std::optional< std::string > Md5() const =0
Return the MDG checksum if it exist.
virtual const std::string & FileType() const =0
Returns the MIME type of the string.
virtual IMetaData * MetaData() const =0
Returns the meta-data (MD) block.
virtual IMetaData * CreateMetaData()=0
Create a meta-data (MD) block.
virtual void IsCompressed(bool compress)=0
Set true tp compress.
virtual const std::string & FileName() const =0
Returns the filename.
Base class for all MDF blocks.
Definition iblock.h:19
All MDF blocks inherits from the IBlock class. The interface class is used internally in lists....
Main namespace for the MDF library.
Definition canmessage.h:17