Rerun C++ SDK
Loading...
Searching...
No Matches
rerun::components::MediaType Struct Reference

Component: A standardized media type (RFC2046, formerly known as MIME types), encoded as a utf8 string. More...

#include <rerun/components/media_type.hpp>

Public Member Functions

 MediaType (const char *media_type)
 Construct media type from a null-terminated UTF8 string.
 
 MediaType (rerun::datatypes::Utf8 value_)
 
MediaTypeoperator= (rerun::datatypes::Utf8 value_)
 
 MediaType (std::string value_)
 
MediaTypeoperator= (std::string value_)
 
 operator rerun::datatypes::Utf8 () const
 Cast to the underlying Utf8 datatype.
 

Static Public Member Functions

static MediaType plain_text ()
 text/plain
 
static MediaType markdown ()
 text/markdown
 
static MediaType gltf ()
 glTF: model/gltf+json.
 
static MediaType glb ()
 Binary glTF: model/gltf-binary.
 
static MediaType obj ()
 Wavefront obj: model/obj.
 
static MediaType stl ()
 Stereolithography Model stl: model/stl.
 

Public Attributes

rerun::datatypes::Utf8 value
 

Detailed Description

Component: A standardized media type (RFC2046, formerly known as MIME types), encoded as a utf8 string.

The complete reference of officially registered media types is maintained by the IANA and can be consulted at https://www.iana.org/assignments/media-types/media-types.xhtml.

Member Function Documentation

◆ markdown()

static MediaType rerun::components::MediaType::markdown ( )
inlinestatic

◆ gltf()

static MediaType rerun::components::MediaType::gltf ( )
inlinestatic

◆ glb()

static MediaType rerun::components::MediaType::glb ( )
inlinestatic

◆ obj()

static MediaType rerun::components::MediaType::obj ( )
inlinestatic

◆ stl()

static MediaType rerun::components::MediaType::stl ( )
inlinestatic

The documentation for this struct was generated from the following file: