Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Protected Member Functions | Protected Attributes
Arc::WSRPGetMultipleResourcePropertiesRequest Class Reference

#include <WSResourceProperties.h>

Inheritance diagram for Arc::WSRPGetMultipleResourcePropertiesRequest:
Inheritance graph
[legend]
Collaboration diagram for Arc::WSRPGetMultipleResourcePropertiesRequest:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 WSRPGetMultipleResourcePropertiesRequest (SOAPEnvelope &soap)
 WSRPGetMultipleResourcePropertiesRequest (void)
 WSRPGetMultipleResourcePropertiesRequest (const std::vector< std::string > &names)
 ~WSRPGetMultipleResourcePropertiesRequest (void)
std::vector< std::string > Names (void)
void Names (const std::vector< std::string > &names)
virtual SOAPEnvelope & SOAP (void)
 Direct access to underlying SOAP element.
virtual operator bool (void)
 Returns true if instance is valid.
virtual bool operator! (void)

Protected Member Functions

void set_namespaces (void)
 set WS-ResourceProperties namespaces and default prefixes in SOAP message

Protected Attributes

SOAPEnvelope & soap_
bool allocated_
 Associated SOAP message - it's SOAP message after all.
bool valid_
 true if soap_ needs to be deleted in destructor

Detailed Description

Definition at line 151 of file WSResourceProperties.h.


Constructor & Destructor Documentation

Definition at line 188 of file WSResourceProperties.cpp.

                                                                                                    :WSRP(soap,WSRPGetMultipleResourcePropertiesRequestAction) {
  if(!valid_) return;
  if(!MatchXMLName(soap_.Child(),"wsrf-rp:GetMultipleResourceProperties")) valid_=false;
}

Here is the call graph for this function:

Definition at line 193 of file WSResourceProperties.cpp.

                                                                                      :WSRP(false,WSRPGetMultipleResourcePropertiesRequestAction) {
  XMLNode req = soap_.NewChild("wsrf-rp:GetMultipleResourceProperties");
  if(!req) valid_=false;
}

Definition at line 198 of file WSResourceProperties.cpp.

                                                                                                                   :WSRP(false,WSRPGetMultipleResourcePropertiesRequestAction) {
  XMLNode req = soap_.NewChild("wsrf-rp:GetMultipleResourceProperties");
  if(!req) { valid_=false; return; };
  for(std::vector<std::string>::const_iterator i = names.begin();i!=names.end();++i) {
    XMLNode new_node = req.NewChild("wsrf-rp:ResourceProperty");
    new_node=*i;
  };
}

Here is the call graph for this function:

Definition at line 207 of file WSResourceProperties.cpp.

                                                                                        {
}

Member Function Documentation

std::vector< std::string > Arc::WSRPGetMultipleResourcePropertiesRequest::Names ( void  )

Definition at line 210 of file WSResourceProperties.cpp.

                                                                         {
  std::vector<std::string> names;
  if(!valid_) return names;
  XMLNode props = soap_.Child()["wsrf-rp:ResourceProperty"];
  for(int n = 0;;++n) {
    XMLNode prop = props[n];
    if(!prop) break;
    names.push_back((std::string)prop);
  };
  return names;
}

Here is the caller graph for this function:

void Arc::WSRPGetMultipleResourcePropertiesRequest::Names ( const std::vector< std::string > &  names)

Definition at line 222 of file WSResourceProperties.cpp.

                                                                                      {
  if(!valid_) return;
  XMLNode req = soap_.Child();
  for(;;) {
    XMLNode prop = req["wsrf-rp:ResourceProperty"];
    if(!prop) break;
    prop.Destroy();
  };
  for(std::vector<std::string>::const_iterator i = names.begin();i!=names.end();++i) {
    XMLNode new_node = req.NewChild("wsrf-rp:ResourceProperty");
    new_node=*i;
  };
}

Here is the call graph for this function:

virtual Arc::WSRF::operator bool ( void  ) [inline, virtual, inherited]

Returns true if instance is valid.

Definition at line 27 of file WSRF.h.

{ return valid_; };
virtual bool Arc::WSRF::operator! ( void  ) [inline, virtual, inherited]

Definition at line 28 of file WSRF.h.

{ return !valid_; };
void Arc::WSRP::set_namespaces ( void  ) [protected, inherited]

set WS-ResourceProperties namespaces and default prefixes in SOAP message

Reimplemented from Arc::WSRF.

Definition at line 34 of file WSResourceProperties.cpp.

                              {
  NS ns;
  ns["wsrf-bf"]="http://docs.oasis-open.org/wsrf/bf-2";
  ns["wsrf-rp"]="http://docs.oasis-open.org/wsrf/rp-2";
  ns["wsrf-rpw"]="http://docs.oasis-open.org/wsrf/rpw-2";
  ns["wsrf-rw"]="http://docs.oasis-open.org/wsrf/rw-2";
  soap_.Namespaces(ns);
}

Here is the caller graph for this function:

virtual SOAPEnvelope& Arc::WSRF::SOAP ( void  ) [inline, virtual, inherited]

Direct access to underlying SOAP element.

Definition at line 25 of file WSRF.h.

{ return soap_; };

Here is the caller graph for this function:


Member Data Documentation

bool Arc::WSRF::allocated_ [protected, inherited]

Associated SOAP message - it's SOAP message after all.

Definition at line 14 of file WSRF.h.

SOAPEnvelope& Arc::WSRF::soap_ [protected, inherited]

Definition at line 13 of file WSRF.h.

bool Arc::WSRF::valid_ [protected, inherited]

true if soap_ needs to be deleted in destructor

Definition at line 15 of file WSRF.h.


The documentation for this class was generated from the following files: