BEGIN_NCBI_SCOPE TObjectPtr CStaticDataType::CreateDefault(const CDataValue& ) const { NCBI_THROW(CDatatoolException, eNotImplemented, GetASNKeyword() + string(" default not implemented")); }
void CDataMemberContainerType::PrintASN(CNcbiOstream& out, int indent) const { PrintASNTag(out); out << GetASNKeyword() << " {"; ++indent; ITERATE ( TMembers, i, m_Members ) { PrintASNNewLine(out, indent); const CDataMember& member = **i; TMembers::const_iterator next = i; bool last = ++next == m_Members.end(); member.PrintASN(out, indent, last); }
void CEnumDataType::PrintASN(CNcbiOstream& out, int indent) const { out << GetASNKeyword() << " {"; ++indent; ITERATE ( TValues, i, m_Values ) { PrintASNNewLine(out, indent); TValues::const_iterator next = i; bool last = ++next == m_Values.end(); bool oneLineComment = i->GetComments().OneLine(); if ( !oneLineComment ) i->GetComments().PrintASN(out, indent); out << CDataTypeModule::ToAsnId(i->GetName()) << " (" << i->GetValue() << ")"; if ( !last ) out << ','; if ( oneLineComment ) { out << ' '; i->GetComments().PrintASN(out, indent, CComments::eOneLine); } }
void CAnyContentDataType::PrintASN(CNcbiOstream& out, int /* indent */) const { out << GetASNKeyword(); }
void CStaticDataType::PrintASN(CNcbiOstream& out, int /*indent*/) const { out << GetASNKeyword(); }