\r
#include <vector>\r
\r
+// trust of -1 will mean NULL trust\r
class TrustListXML:public IFMSXMLDocument,public ILogger\r
{\r
private:\r
struct trust\r
{\r
- trust(const std::string &identity, const long messagetrust, const long trustlisttrust):m_identity(identity),m_messagetrust(messagetrust),m_trustlisttrust(trustlisttrust) {}\r
+ trust(const std::string &identity, const long messagetrust, const long trustlisttrust, const std::string &messagetrustcomment, const std::string &trustlisttrustcomment):m_identity(identity),m_messagetrust(messagetrust),m_trustlisttrust(trustlisttrust),m_messagetrustcomment(messagetrustcomment),m_trustlisttrustcomment(trustlisttrustcomment) {}\r
std::string m_identity;\r
long m_messagetrust;\r
long m_trustlisttrust;\r
+ std::string m_messagetrustcomment;\r
+ std::string m_trustlisttrustcomment;\r
};\r
public:\r
TrustListXML();\r
\r
void ClearTrust() { m_trust.clear(); }\r
\r
- void AddTrust(const std::string &identity, const long messagetrust, const long trustlisttrust);\r
+ void AddTrust(const std::string &identity, const long messagetrust, const long trustlisttrust, const std::string &messagetrustcomment, const std::string &trustlisttrustcomment);\r
\r
const std::vector<trust>::size_type TrustCount() { return m_trust.size(); }\r
std::string GetIdentity(const long index);\r
long GetMessageTrust(const long index);\r
long GetTrustListTrust(const long index);\r
+ std::string GetMessageTrustComment(const long index);\r
+ std::string GetTrustListTrustComment(const long index);\r
\r
private:\r
void Initialize();\r