void PrinterPlain::beginUnionArray(const PVUnionArray& pv) { indentN(S(), ilvl); S() << pv.getUnionArray()->getID() << " " << pv.getFieldName() << "[] "; ilvl++; }
void PVUnionArray::copy(const PVUnionArray& from) { if(isImmutable()) throw std::invalid_argument("destination is immutable"); if(*getUnionArray() != *from.getUnionArray()) throw std::invalid_argument("unionArray definitions do not match"); copyUnchecked(from); }