21 #ifndef SEQUENCERESPONSE_H
22 #define SEQUENCERESPONSE_H
47 void AddChild(
const string& reference,
const wsrm::Nack& nack ){ (void)m_Nacks.insert( pair< string, wsrm::Nack >( reference, nack ) ); }
48 void AddChild(
const string& reference,
const wsrm::Ack& ack ){ (void)m_DistinctAcks.insert( pair< string, wsrm::Ack >( reference, ack ) ); }
50 const map< string, wsrm::Ack >&
getAcks()
const {
return m_DistinctAcks; }
51 const map< string, wsrm::Nack >&
getNacks()
const {
return m_Nacks; }
53 const wsrm::Ack&
getAck(
const string& reference ) {
return m_DistinctAcks[ reference ]; }
55 virtual bool IsAck(
const unsigned long sequence )
const = 0;
56 virtual bool IsAck(
const string reference )
const {
return false; };
57 virtual bool IsNack(
const string reference )
const = 0;
58 unsigned int seqSize()
const
60 return m_Nacks.size() + m_DistinctAcks.size() ;
63 static SequenceResponse* Deserialize( DOMNode* root,
const string& messageFilename );
67 virtual string internalSerialize()
const = 0;
68 virtual DOMNode* internalSerialize( DOMNode* root )
const = 0;
70 virtual WSSerializable* internalDeserialize(
const DOMNode* root ) = 0;
81 #endif // SEQUENCERESPONSE_H