4#ifndef _SCENEPIC_IMAGE_H_
5#define _SCENEPIC_IMAGE_H_
22 void load(
const std::string& path);
36 const std::vector<std::uint8_t>&
data()
const;
39 std::vector<std::uint8_t>&
data();
42 Image&
data(
const std::vector<std::uint8_t>& value);
45 const std::string&
ext()
const;
58 std::vector<std::uint8_t> m_data;
59 std::string m_image_id;
A ScenePic Image type.
Definition: image.h:17
const std::vector< std::uint8_t > & data() const
The encoded binary image data.
const std::string & ext() const
The extension of the image (e.g.
JsonValue to_json() const
Convert this object into ScenePic json.
Image & data(const std::vector< std::uint8_t > &value)
The encoded binary image data.
const std::string & image_id() const
A unique identifier for the image.
void load(const std::string &path)
Load an image file from the disk.
std::string to_string() const
Return a JSON string representing the object.
std::vector< std::uint8_t > & data()
The encoded binary image data.
Image & ext(const std::string &value)
The extension of the image (e.g.
Representation of a JSON value according to the specification at https://www.json....
Definition: json_value.h:30
Top level container representing an entire ScenePic.
Definition: scene.h:58
Definition: audio_track.h:14