18 #ifndef PRTX_ANNOTATIONBUILDER_H_
19 #define PRTX_ANNOTATIONBUILDER_H_
21 #include "prt/Annotation.h"
24 #include "prtx/Builder.h"
30 # pragma warning(push)
31 # pragma warning(disable : 4251 4275)
51 void setName(
const std::wstring& name);
61 void addString(
const std::wstring& key,
const std::wstring& val);
66 void addFloat(
const std::wstring& key,
double val);
71 void addBool(
const std::wstring& key,
bool val);
76 virtual const prt::Annotation* create(std::wstring* warnings = 0)
const;
81 virtual const prt::Annotation* createAndReset(std::wstring* warnings = 0);
86 static const prt::Annotation* createAnnotation(
const std::wstring& name);
91 static const prt::Annotation* createAnnotation(
const std::wstring& name,
const std::wstring& key,
const std::wstring& val);
96 static const prt::Annotation* createAnnotation(
const std::wstring& name,
const std::wstring& key,
double val);
101 static const prt::Annotation* createAnnotation(
const std::wstring& name,
const std::wstring& key,
bool val);
105 std::vector<const prt::AnnotationArgument*> mArguments;
113 namespace AnnotationArgumentBuilder {
126 # pragma warning(pop)
Definition: AnnotationBuilder.h:41
Definition: Annotation.h:43
Definition: Annotation.h:56