コード例 #1
0
bool RObject::isValidType (RData *new_data) const {
	RK_TRACE (OBJECTS);
	RK_ASSERT (new_data->getDataLength () == 1);
	RK_ASSERT (new_data->getDataType () == RData::IntVector);

	int new_type = new_data->getIntVector ()[0];
	if (!isMatchingType (type, new_type)) return false;

	return true;
}
コード例 #2
0
ファイル: pf_Frag_Strux.cpp プロジェクト: lokeshguddu/AbiWord
bool pf_Frag_Strux::isMatchingType(const pf_Frag * pf) const
{
	UT_return_val_if_fail( pf, false );

	if(pf->getType() != pf_Frag::PFT_Strux)
		return false;

	const pf_Frag_Strux * pfs = (const pf_Frag_Strux*)pf;

	return isMatchingType(pfs->getStruxType());
}