\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
+ std::string m_identity;\r
+ long m_messagetrust;\r
+ long m_trustlisttrust;\r
+ };\r
public:\r
TrustListXML();\r
\r
\r
void AddTrust(const std::string &identity, const long messagetrust, const long trustlisttrust);\r
\r
- const long TrustCount() { return m_trust.size(); }\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
\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
- std::string m_identity;\r
- long m_messagetrust;\r
- long m_trustlisttrust;\r
- };\r
-\r
void Initialize();\r
\r
std::vector<trust> m_trust;\r