Back to index

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

Base class for every WSRF message. More...

#include <WSRF.h>

Inheritance diagram for Arc::WSRF:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 WSRF (SOAPEnvelope &soap, const std::string &action="")
 Constructor - creates object out of supplied SOAP tree.
 WSRF (bool fault=false, const std::string &action="")
 Constructor - creates new WSRF object.
virtual ~WSRF (void)
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)
 true if object represents valid WSRF 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

Base class for every WSRF message.

This class is not intended to be used directly. Use it like reference while passing through unknown WSRF message or use classes derived from it.

Definition at line 11 of file WSRF.h.


Constructor & Destructor Documentation

Arc::WSRF::WSRF ( SOAPEnvelope &  soap,
const std::string &  action = "" 
)

Constructor - creates object out of supplied SOAP tree.

Definition at line 19 of file WSRF.cpp.

                                                    :
             soap_(soap),allocated_(false),valid_(false) {
  if(!soap_) return;
  set_namespaces();
  if(!action.empty()) if(WSAHeader(soap).Action() != action) return;
  valid_=true;
}

Here is the call graph for this function:

Arc::WSRF::WSRF ( bool  fault = false,
const std::string &  action = "" 
)

Constructor - creates new WSRF object.

Definition at line 28 of file WSRF.cpp.

                                            :
            soap_(*(new SOAPEnvelope(NS(),fault))),
            allocated_(true),valid_(false) {
  set_namespaces();
  if(!action.empty()) WSAHeader(soap_).Action(action);
  valid_=true;
}

Here is the call graph for this function:

Arc::WSRF::~WSRF ( void  ) [virtual]

Definition at line 36 of file WSRF.cpp.

                {
  if(allocated_) delete (&soap_);
}

Member Function Documentation

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

Returns true if instance is valid.

Definition at line 27 of file WSRF.h.

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

Definition at line 28 of file WSRF.h.

{ return !valid_; };
void Arc::WSRF::set_namespaces ( void  ) [protected]

true if object represents valid WSRF message

set WS Resource namespaces and default prefixes in SOAP message

Reimplemented in Arc::WSRP, and Arc::WSRFBaseFault.

Definition at line 10 of file WSRF.cpp.

                              {
  NS ns;
  ns["wsa"]="http://www.w3.org/2005/08/addressing";
  ns["wsrf-bf"]="http://docs.oasis-open.org/wsrf/bf-2";
  ns["wsrf-r"]="http://docs.oasis-open.org/wsrf/r-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]

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]

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

Definition at line 14 of file WSRF.h.

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

Definition at line 13 of file WSRF.h.

bool Arc::WSRF::valid_ [protected]

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: