Can someone please explain in simple terms how I would use the following
class (TCSRPCResultWithPeerNode) as a return type from a SOAP call, when
it has a vector of PeerNodes inside it. The headers of these two
classes are below.
Is the ordering of the vector preserved? Ive read the manual but I cant
make it out.
Thanks
Andrew
class TCSRPCResultWithPeerNodes : public TCSRPCResult
{
protected:
std::vector<PeerNode*> peernodes;
public:
TCSRPCResultWithPeerNodes(int c);
void addPeerNode(PeerNode* pn);
std::vector<PeerNode*> getPeerNodes();
};
class PeerNode
{
protected:
int id;
std::string host;
int port;
std::string transport_protocol;
std::string application_protocol;
int maxcalls;
int currentcalls;
public:
PeerNode();
int getID();
void setID(int i);
std::string getHost();
void setHost(std::string h);
int getPort();
void setPort(int p);
std::string getTransportProtocol();
void setTransportProtocol(std::string tp);
std::string getApplicationProtocol();
void setApplicationProtocol(std::string ap);
int getMaxCalls();
void setMaxCalls(int m);
int getCurrentCalls();
void setCurrentCalls(int c);
};