ArcGIS Procedural Runtime  3.2.10650
List of all members | Public Member Functions
prtx::Builder< C > Class Template Referenceabstract

#include <Builder.h>

Public Member Functions

 Builder (const Builder &)=delete
 
virtual C * create (std::wstring *warnings=0) const =0
 
virtual C * createAndReset (std::wstring *warnings=0)=0
 
Builderoperator= (const Builder &)=delete
 

Detailed Description

template<typename C>
class prtx::Builder< C >

Interface template for the Builder Pattern. A builder is useful to create (multiple) immutable objects with similar states.

Member Function Documentation

◆ create()

template<typename C>
virtual C* prtx::Builder< C >::create ( std::wstring *  warnings = 0) const
pure virtual

Creates an instance of type C based on the current builder state. Does not modify the builder state.

Parameters
[out]warningsIf warnings != 0, a builder implementation may emit warnings about the creation process.
Returns
New instance of type C. Must be destroyed by the caller.

Implemented in prtx::AnnotationBuilder, and prtx::EncoderInfoBuilder.

◆ createAndReset()

template<typename C>
virtual C* prtx::Builder< C >::createAndReset ( std::wstring *  warnings = 0)
pure virtual

Creates and instance of type C based on the current builder state. Resets the builder state at the end.

Parameters
[out]warningsIf warnings != 0, a builder implementation may emit warnings about the creation process.
Returns
New instance of type C. Must be destroyed by the caller.

Implemented in prtx::AnnotationBuilder, and prtx::EncoderInfoBuilder.


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