Robot Raconteur Companion C++ Library
Loading...
Searching...
No Matches
image_parser.h
1#include "yaml_parser_common_include.h"
2
3#pragma once
4
5namespace YAML
6{
7template <>
8struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::PixelRGB>
9{
10 static Node encode(const com::robotraconteur::image::PixelRGB& rhs);
11 static bool decode(const Node& node, com::robotraconteur::image::PixelRGB& rhs);
12};
13
14template <>
15struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::PixelRGBA>
16{
17 static Node encode(const com::robotraconteur::image::PixelRGBA& rhs);
18 static bool decode(const Node& node, com::robotraconteur::image::PixelRGBA& rhs);
19};
20
21template <>
22struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::PixelRGBFloatPacked>
23{
24 static Node encode(const com::robotraconteur::image::PixelRGBFloatPacked& rhs);
25 static bool decode(const Node& node, com::robotraconteur::image::PixelRGBFloatPacked& rhs);
26};
27
28template <>
29struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::PixelRGBFloatPackedf>
30{
31 static Node encode(const com::robotraconteur::image::PixelRGBFloatPackedf& rhs);
32 static bool decode(const Node& node, com::robotraconteur::image::PixelRGBFloatPackedf& rhs);
33};
34
35template <>
36struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::ImageInfoPtr>
37{
38 static Node encode(const com::robotraconteur::image::ImageInfoPtr& rhs);
39 static bool decode(const Node& node, com::robotraconteur::image::ImageInfoPtr& rhs);
40};
41
42template <>
43struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::FreeformImageInfoPtr>
44{
45 static Node encode(const com::robotraconteur::image::FreeformImageInfoPtr& rhs);
46 static bool decode(const Node& node, com::robotraconteur::image::FreeformImageInfoPtr& rhs);
47};
48
49template <>
50struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::ImagePtr>
51{
52 static Node encode(const com::robotraconteur::image::ImagePtr& rhs);
53 static bool decode(const Node& node, com::robotraconteur::image::ImagePtr& rhs);
54};
55
56template <>
57struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::CompressedImagePtr>
58{
59 static Node encode(const com::robotraconteur::image::CompressedImagePtr& rhs);
60 static bool decode(const Node& node, com::robotraconteur::image::CompressedImagePtr& rhs);
61};
62
63template <>
64struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::FreeformImagePtr>
65{
66 static Node encode(const com::robotraconteur::image::FreeformImagePtr& rhs);
67 static bool decode(const Node& node, com::robotraconteur::image::FreeformImagePtr& rhs);
68};
69
70template <>
71struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::ImagePartPtr>
72{
73 static Node encode(const com::robotraconteur::image::ImagePartPtr& rhs);
74 static bool decode(const Node& node, com::robotraconteur::image::ImagePartPtr& rhs);
75};
76
77template <>
78struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::CompressedImagePartPtr>
79{
80 static Node encode(const com::robotraconteur::image::CompressedImagePartPtr& rhs);
81 static bool decode(const Node& node, com::robotraconteur::image::CompressedImagePartPtr& rhs);
82};
83
84template <>
85struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::FreeformImagePartPtr>
86{
87 static Node encode(const com::robotraconteur::image::FreeformImagePartPtr& rhs);
88 static bool decode(const Node& node, com::robotraconteur::image::FreeformImagePartPtr& rhs);
89};
90
91template <>
92struct ROBOTRACONTEUR_COMPANION_INFOPARSER_API convert<com::robotraconteur::image::ImageResourcePtr>
93{
94 static Node encode(const com::robotraconteur::image::ImageResourcePtr& rhs);
95 static bool decode(const Node& node, com::robotraconteur::image::ImageResourcePtr& rhs);
96};
97
98} // namespace YAML