Exemple #1
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);
}
Exemple #2
0
std::ostream& PVUnionArray::dumpValue(std::ostream& o) const
{
    o << format::indent() << getUnionArray()->getID() << ' ' << getFieldName() << std::endl;
    size_t length = getLength();
    if (length > 0)
    {
    	format::indent_scope s(o);

        for (size_t i = 0; i < length; i++)
        	dumpValue(o, i);
    }

    return o;
}
Exemple #3
0
boost::python::list PvObject::getUnionArray() const
{
    std::string key = PyPvDataUtility::getValueOrSingleFieldName(pvStructurePtr);
    return getUnionArray(key);
}