OHOS::Media::FormatData
Overview
Related Modules:
Description:
Represents the data format.
Since:
1.0
Version:
1.0
Summary
Public Member Functions
| Public Member Function Name | Description |
|---|---|
| GetType () const | FormatDataType Obtains the format type. |
| SetValue (int32_t val) | bool Sets a 32-bit integer. |
| SetValue (int64_t val) | bool Sets a 64-bit long integer. |
| SetValue (float val) | bool Sets a single-precision floating-point number. |
| SetValue (double val) | bool Sets a double-precision floating-point number. |
| SetValue (const std::string &val) | bool Sets a string. |
| GetInt32Value (int32_t &val) const | bool Obtains a 32-bit integer. |
| GetInt64Value (int64_t &val) const | bool Obtains a long integer. |
| GetFloatValue (float &val) const | bool Obtains a single-precision floating-point number. |
| GetDoubleValue (double &val) const | bool Obtains a double-precision floating-point number. |
| GetStringValue (std::string &val) const | bool Obtains a string. |
