NTUnionBuilder: Add missing value() function
Add missing function NTUnionBuilder::value() to allow the union type of the NTUnion's value field to be specified.
This commit is contained in:
@@ -18,6 +18,12 @@ static NTFieldPtr ntField = NTField::get();
|
||||
namespace detail {
|
||||
|
||||
|
||||
NTUnionBuilder::shared_pointer NTUnionBuilder::value(UnionConstPtr unionType)
|
||||
{
|
||||
valueType = unionType;
|
||||
return shared_from_this();
|
||||
}
|
||||
|
||||
StructureConstPtr NTUnionBuilder::createStructure()
|
||||
{
|
||||
FieldBuilderPtr builder =
|
||||
|
||||
Reference in New Issue
Block a user