ArcGIS Procedural Runtime
3.2.10650
|
#include <AnnotationBuilder.h>
Public Member Functions | |
void | addArgument (const prt::AnnotationArgument *arg) |
void | addBool (const std::wstring &key, bool val) |
void | addFloat (const std::wstring &key, double val) |
void | addString (const std::wstring &key, const std::wstring &val) |
AnnotationBuilder (const AnnotationBuilder &)=delete | |
virtual const prt::Annotation * | create (std::wstring *warnings=0) const |
virtual const prt::Annotation * | createAndReset (std::wstring *warnings=0) |
AnnotationBuilder & | operator= (const AnnotationBuilder &)=delete |
void | setName (const std::wstring &name) |
Public Member Functions inherited from prtx::Builder< const prt::Annotation > | |
Builder (const Builder &)=delete | |
Builder & | operator= (const Builder &)=delete |
Static Public Member Functions | |
static const prt::Annotation * | createAnnotation (const std::wstring &name) |
static const prt::Annotation * | createAnnotation (const std::wstring &name, const std::wstring &key, const std::wstring &val) |
static const prt::Annotation * | createAnnotation (const std::wstring &name, const std::wstring &key, double val) |
static const prt::Annotation * | createAnnotation (const std::wstring &name, const std::wstring &key, bool val) |
Use this builder class to annotate attributes or encoder options.
void prtx::AnnotationBuilder::addArgument | ( | const prt::AnnotationArgument * | arg | ) |
Adds any annotation argument created by the AnnotationArgumentBuilder.
void prtx::AnnotationBuilder::addBool | ( | const std::wstring & | key, |
bool | val | ||
) |
Convenience member function to add a bool annotation argument.
void prtx::AnnotationBuilder::addFloat | ( | const std::wstring & | key, |
double | val | ||
) |
Convenience member function to add a double annotation argument.
void prtx::AnnotationBuilder::addString | ( | const std::wstring & | key, |
const std::wstring & | val | ||
) |
Convenience member function to add a string annotation argument.
|
virtual |
Creates an annotation instance but does not change the state of the builder.
Implements prtx::Builder< const prt::Annotation >.
|
virtual |
Creates an annotation instance and resets the builder.
Implements prtx::Builder< const prt::Annotation >.
|
static |
Convenience member function to create an annotation without any parameters.
|
static |
Convenience member function to create an annotation with a single string parameter.
|
static |
Convenience member function to create an annotation with a single double parameter.
|
static |
Convenience member function to create an annotation with a single boolean parameter.
void prtx::AnnotationBuilder::setName | ( | const std::wstring & | name | ) |
Sets the annotation name.