|
Molybden
|
An interface that all upload data implementations must extend. More...
#include <upload_data.hpp>
Public Member Functions | |
| template<class S > | |
| std::shared_ptr< S > | as () |
| Casts this upload data to the target type. | |
Protected Member Functions | |
| virtual UploadDataType | type () const =0 |
| Returns the current upload data type. | |
An interface that all upload data implementations must extend.
| std::shared_ptr< S > molybden::UploadData::as | ( | ) |
Casts this upload data to the target type.
Returns an empty std::shared_ptr if this upload data is not of the given target type. For example:
| S | the target type that must be the UploadData subclass. |