void PDFEnvelopeOwner::addEnvelopeByType(const string& tp) { // this throws invalid_argument for invalid type PDFEnvelopePtr envlp = PDFEnvelope::createByType(tp); // we get here only when createByType was successful menvelope[envlp->type()] = envlp; }
void PDFEnvelopeOwner::addEnvelope(PDFEnvelopePtr envlp) { ensureNonNull("PDFEnvelope", envlp); menvelope[envlp->type()] = envlp; }
void test_type() { TS_ASSERT_EQUALS("sphericalshape", menvelope->type()); }