\hypertarget{a06908}{}\section{Metadata\+Interface Class Reference}
\label{a06908}\index{Metadata\+Interface@{Metadata\+Interface}}


Enables implementers to react on deserialization of meta data.  




{\ttfamily \#include $<$Open\+Flipper/\+Base\+Plugin/\+Metadata\+Interface.\+hh$>$}

Inheritance diagram for Metadata\+Interface\+:\begin{figure}[H]
\begin{center}
\leavevmode
\includegraphics[height=2.000000cm]{a06908}
\end{center}
\end{figure}
\subsection*{Signals}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a06908_a751615f64881b7449cba39ee59046a3e}{metadata\+Deserialized} (const Q\+Vector$<$ Q\+Pair$<$ Q\+String, Q\+String $>$ $>$ \&data)=0
\end{DoxyCompactItemize}
\subsection*{Public Member Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{a06908_a513d62027376ab406e99ce751a4018e5}\label{a06908_a513d62027376ab406e99ce751a4018e5}} 
virtual \hyperlink{a06908_a513d62027376ab406e99ce751a4018e5}{$\sim$\+Metadata\+Interface} ()
\begin{DoxyCompactList}\small\item\em Destructor. \end{DoxyCompactList}\end{DoxyCompactItemize}
\subsection*{Private Slots}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a06908_a0ea68fd69a7110306a487bfdf2c10c11}{slot\+Generic\+Metadata\+Deserialized} (Q\+String key, Q\+String value)
\end{DoxyCompactItemize}
\subsection*{Private Member Functions}
\begin{DoxyCompactItemize}
\item 
virtual void \hyperlink{a06908_aa5e1440b69ea234a95b72018312b6642}{slot\+Object\+Metadata\+Deserialized} (Q\+String object\+\_\+name, Q\+String value)
\item 
virtual void \hyperlink{a06908_a140e5c11a6025a6cd2ef54947bbf1bde}{slot\+Object\+Metadata\+Deserialized\+Json} (Q\+String object\+\_\+name, Q\+Json\+Document value)
\end{DoxyCompactItemize}


\subsection{Detailed Description}
Enables implementers to react on deserialization of meta data. 

Detailed description

Using functions such as \hyperlink{a07036_a8a892342232012be216d606dc416aeec}{Base\+Object\+::get\+Comment\+By\+Key()} plugins can attach meta data to objects. This meta data is currently only serialized when taking viewer snapshots. \char`\"{}\+Plugin-\/\+Deserialize\+Screenshot\+Metadata\char`\"{} allows deserializing this metadata from a viewer snapshot. (In the future serialization and deserialization of meta data may occur in other contexts as well.)

Whenever meta gets deserialized the slots in this interface will get triggered. Please refer to the documentation of the individual slots to find out which specific signal suits your needs.

The slots are always triggered in the order \hyperlink{a06908_a0ea68fd69a7110306a487bfdf2c10c11}{slot\+Generic\+Metadata\+Deserialized()}, \hyperlink{a06908_aa5e1440b69ea234a95b72018312b6642}{slot\+Object\+Metadata\+Deserialized()}, \hyperlink{a06908_a140e5c11a6025a6cd2ef54947bbf1bde}{slot\+Object\+Metadata\+Deserialized\+Json()}. 

Definition at line 77 of file Metadata\+Interface.\+hh.



\subsection{Member Function Documentation}
\mbox{\Hypertarget{a06908_a751615f64881b7449cba39ee59046a3e}\label{a06908_a751615f64881b7449cba39ee59046a3e}} 
\index{Metadata\+Interface@{Metadata\+Interface}!metadata\+Deserialized@{metadata\+Deserialized}}
\index{metadata\+Deserialized@{metadata\+Deserialized}!Metadata\+Interface@{Metadata\+Interface}}
\subsubsection{\texorpdfstring{metadata\+Deserialized}{metadataDeserialized}}
{\footnotesize\ttfamily virtual void Metadata\+Interface\+::metadata\+Deserialized (\begin{DoxyParamCaption}\item[{const Q\+Vector$<$ Q\+Pair$<$ Q\+String, Q\+String $>$ $>$ \&}]{data }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [pure virtual]}, {\ttfamily [signal]}}

Can be called by anyone who deserializes meta data, e.\+g. from a viewer snapshot P\+NG file. The appropriate slots within this interface will be triggered. \mbox{\Hypertarget{a06908_a0ea68fd69a7110306a487bfdf2c10c11}\label{a06908_a0ea68fd69a7110306a487bfdf2c10c11}} 
\index{Metadata\+Interface@{Metadata\+Interface}!slot\+Generic\+Metadata\+Deserialized@{slot\+Generic\+Metadata\+Deserialized}}
\index{slot\+Generic\+Metadata\+Deserialized@{slot\+Generic\+Metadata\+Deserialized}!Metadata\+Interface@{Metadata\+Interface}}
\subsubsection{\texorpdfstring{slot\+Generic\+Metadata\+Deserialized}{slotGenericMetadataDeserialized}}
{\footnotesize\ttfamily virtual void Metadata\+Interface\+::slot\+Generic\+Metadata\+Deserialized (\begin{DoxyParamCaption}\item[{Q\+String}]{key,  }\item[{Q\+String}]{value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}, {\ttfamily [slot]}}

This low-\/level signal is very inconvenient to use and chances are you want to use one of the other signals.

Triggered for every top level meta data entry. Currently the only top level meta data entries created by Open\+Flipper are \char`\"{}\+Mesh Comments\char`\"{}, \char`\"{}\+Mesh Materials\char`\"{} and \char`\"{}\+View\char`\"{}. \char`\"{}\+Mesh Comments\char`\"{} contains the raw concatenation of all object meta data and is very cumbersome to parse. In most cases it\textquotesingle{}s a better idea to use object\+Metadata\+Deserialized(). 

Definition at line 91 of file Metadata\+Interface.\+hh.

\mbox{\Hypertarget{a06908_aa5e1440b69ea234a95b72018312b6642}\label{a06908_aa5e1440b69ea234a95b72018312b6642}} 
\index{Metadata\+Interface@{Metadata\+Interface}!slot\+Object\+Metadata\+Deserialized@{slot\+Object\+Metadata\+Deserialized}}
\index{slot\+Object\+Metadata\+Deserialized@{slot\+Object\+Metadata\+Deserialized}!Metadata\+Interface@{Metadata\+Interface}}
\subsubsection{\texorpdfstring{slot\+Object\+Metadata\+Deserialized()}{slotObjectMetadataDeserialized()}}
{\footnotesize\ttfamily virtual void Metadata\+Interface\+::slot\+Object\+Metadata\+Deserialized (\begin{DoxyParamCaption}\item[{Q\+String}]{object\+\_\+name,  }\item[{Q\+String}]{value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}

Triggered for every piece of object specific meta data encapsulated in \char`\"{}\+Mesh Comments\char`\"{}. 

Definition at line 98 of file Metadata\+Interface.\+hh.

\mbox{\Hypertarget{a06908_a140e5c11a6025a6cd2ef54947bbf1bde}\label{a06908_a140e5c11a6025a6cd2ef54947bbf1bde}} 
\index{Metadata\+Interface@{Metadata\+Interface}!slot\+Object\+Metadata\+Deserialized\+Json@{slot\+Object\+Metadata\+Deserialized\+Json}}
\index{slot\+Object\+Metadata\+Deserialized\+Json@{slot\+Object\+Metadata\+Deserialized\+Json}!Metadata\+Interface@{Metadata\+Interface}}
\subsubsection{\texorpdfstring{slot\+Object\+Metadata\+Deserialized\+Json()}{slotObjectMetadataDeserializedJson()}}
{\footnotesize\ttfamily virtual void Metadata\+Interface\+::slot\+Object\+Metadata\+Deserialized\+Json (\begin{DoxyParamCaption}\item[{Q\+String}]{object\+\_\+name,  }\item[{Q\+Json\+Document}]{value }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [inline]}, {\ttfamily [private]}, {\ttfamily [virtual]}}

Triggered for every piece of object specific meta data encapsulated in \char`\"{}\+Mesh Comments\char`\"{} if it is valid J\+S\+ON. 

Definition at line 105 of file Metadata\+Interface.\+hh.



The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
Open\+Flipper/\+Base\+Plugin/\hyperlink{a00041}{Metadata\+Interface.\+hh}\end{DoxyCompactItemize}
