예제 #1
0
void PrinterPlain::beginUnionArray(const PVUnionArray& pv)
{
    indentN(S(), ilvl);
    S() << pv.getUnionArray()->getID() << " "
        << pv.getFieldName() << "[] ";
    ilvl++;
}
예제 #2
0
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);
}