IOFormat 1.12.0
Loading...
Searching...
No Matches
IOFormat.h File Reference
#include <memory>
#include <string>
#include <iolink/Uri.h>
#include <iolink/storage/RandomAccess.h>
#include <iolink/storage/StreamAccess.h>
#include <iolink/view/ImageView.h>
#include <iolink/view/View.h>
#include <iolink/writer/Writer.h>
#include <ioformat/GeneralOptions.h>
#include <ioformat/IOFormatAPI.h>

Go to the source code of this file.

Namespaces

namespace  ioformat
 Global namespace which contains all methods to encode/decode data from/into different resources (files, streams...) and some other helper classes and methods.
 

Functions

IOFORMAT_API bool ioformat::init ()
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (const std::string &pathFile)
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (const std::string &path, const std::string &format)
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (const iolink::Uri &uri)
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openViewFromUri (const std::string &uri, const GeneralOptions &options={})
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (const iolink::Uri &uri, const std::string &format)
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openViewFromUri (const std::string &uri, const std::string &format, const GeneralOptions &options={})
 
IOFORMAT_API std::shared_ptr< iolink::ImageView > ioformat::readImageFromUri (const std::string &uri, const GeneralOptions &options={})
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (std::shared_ptr< iolink::DataAccess > storage, const std::string &format)
 
IOFORMAT_API std::shared_ptr< iolink::Writer > ioformat::openWriter (std::shared_ptr< iolink::View > view, const std::string &pathFile)
 
IOFORMAT_API std::shared_ptr< iolink::Writer > ioformat::openWriter (std::shared_ptr< iolink::View > view, std::shared_ptr< iolink::DataAccess > dst, const std::string &format)
 
IOFORMAT_API std::shared_ptr< iolink::Writer > ioformat::openWriter (std::shared_ptr< iolink::View > view, std::shared_ptr< iolink::DataAccess > dst, const std::string &format, const std::string &plugin)
 
IOFORMAT_API void ioformat::writeView (std::shared_ptr< iolink::View > view, const std::string &pathFile)
 
IOFORMAT_API void ioformat::writeView (std::shared_ptr< iolink::View > view, std::shared_ptr< iolink::DataAccess > dst, const std::string &format)
 
IOFORMAT_API std::string ioformat::formatFromExtension (const std::string &extension)
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (const std::string &src, const std::string &format, const GeneralOptions &options)
 Open a view from a source path.
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (const std::string &src, const GeneralOptions &options)
 Open a view from a source path.
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (std::shared_ptr< iolink::StreamAccess > src, const std::string &format, const GeneralOptions &options)
 Open a view from a stream.
 
IOFORMAT_API std::shared_ptr< iolink::View > ioformat::openView (std::shared_ptr< iolink::RandomAccess > src, const std::string &format, const GeneralOptions &options)
 Open a view from a random access storage.
 
IOFORMAT_API std::shared_ptr< iolink::ImageView > ioformat::readImage (const std::string &src, const GeneralOptions &options)
 Read an image from a source path and store it in CPU memory.
 
IOFORMAT_API std::shared_ptr< iolink::ImageView > ioformat::readImage (const std::string &pathFile)
 
IOFORMAT_API std::shared_ptr< iolink::Writer > ioformat::openWriter (std::shared_ptr< iolink::View > src, const std::string &dst, const std::string &format, const GeneralOptions &options)
 Open a writer to a destination path.
 
IOFORMAT_API std::shared_ptr< iolink::Writer > ioformat::openWriter (std::shared_ptr< iolink::View > src, const std::string &dst, const GeneralOptions &options)
 Open a writer to a destination path.
 
IOFORMAT_API std::shared_ptr< iolink::Writer > ioformat::openWriter (std::shared_ptr< iolink::View > src, std::shared_ptr< iolink::StreamAccess > dst, const std::string &format, const GeneralOptions &options)
 Open a writer to a destination stream.
 
IOFORMAT_API void ioformat::writeView (std::shared_ptr< iolink::View > src, const std::string &dst, const std::string &format, const GeneralOptions &options)
 Write a view to a destination path.
 
IOFORMAT_API void ioformat::writeView (std::shared_ptr< iolink::View > src, const std::string &dst, const GeneralOptions &options)
 Write a view to a destination path.
 
IOFORMAT_API void ioformat::writeView (std::shared_ptr< iolink::View > src, const std::string &dst, const std::string &format)
 Write a view to a destination path.
 
IOFORMAT_API void ioformat::writeViewToUri (std::shared_ptr< iolink::View > src, const std::string &dst, const GeneralOptions &options={})
 Write a view into a destination URI. Scheme is used to determine the protocol to use.
 
IOFORMAT_API void ioformat::writeViewToUri (std::shared_ptr< iolink::View > src, const std::string &dst, const std::string &format, const GeneralOptions &options={})
 Write a view into a destination URI. Scheme is used to determine the protocol to use.
 
IOFORMAT_API void ioformat::writeView (std::shared_ptr< iolink::View > src, std::shared_ptr< iolink::StreamAccess > dst, const std::string &format, const GeneralOptions &options)
 Write a view into a destination stream.
 
IOFORMAT_API void ioformat::writeView (std::shared_ptr< iolink::View > src, std::shared_ptr< iolink::StreamAccess > dst, const std::string &format)
 Write a view into a destination stream.
 
IOFORMAT_API void ioformat::addCredentials (const std::string &host, const std::string &user, const std::string &password)
 Add credentials for a given host.