---------------------------------------------------------------
| 17 | |
| 18 | //--------------------------------------------------------------- |
| 19 | void InputList::add() const |
| 20 | { |
| 21 | // write inputs |
| 22 | for ( List::const_iterator it = mList.begin(); it != mList.end(); ++it ) |
| 23 | { |
| 24 | mSW->openElement ( CSWC::CSW_ELEMENT_INPUT ); |
| 25 | mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_SEMANTIC, getSemanticString ( it->getSemantic() ) ); |
| 26 | mSW->appendURIAttribute ( CSWC::CSW_ATTRIBUTE_SOURCE, it->getSource() ); |
| 27 | |
| 28 | if ( it->getOffset() >= 0 ) |
| 29 | mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_OFFSET, ( unsigned long ) it->getOffset() ); |
| 30 | |
| 31 | if ( it->getSet() >= 0 ) |
| 32 | mSW->appendAttribute ( CSWC::CSW_ATTRIBUTE_SET, ( unsigned long ) it->getSet() ); |
| 33 | |
| 34 | mSW->closeElement(); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | |
| 39 | //--------------------------------------------------------------- |
nothing calls this directly
no test coverage detected