Molybden API
|
The base class that all file value types must implement. More...
#include <upload_data.hpp>
Public Member Functions | |
template<class S > | |
std::shared_ptr< S > | as () |
Casts this file value to the target type. | |
Protected Member Functions | |
virtual FileValueType | type () const =0 |
Returns the current file value type. | |
The base class that all file value types must implement.
std::shared_ptr< S > molybden::FileValue::as | ( | ) |
Casts this file value to the target type.
Returns an empty std::shared_ptr
if this file value type is not of the given target type. For example:
S | the target type that must be the FileValue subclass. |