Back to index

nordugrid-arc-nox  1.1.0~rc6
Public Member Functions | Private Member Functions | Private Attributes
ArcSec::Source Class Reference

Acquires and parses XML document from specified source. More...

#include <Source.h>

Inheritance diagram for ArcSec::Source:
Inheritance graph
[legend]
Collaboration diagram for ArcSec::Source:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Source (const Source &s)
 Copy constructor.
 Source (Arc::XMLNode &xml)
 Copy XML tree from XML subtree refered by xml.
 Source (std::istream &stream)
 Read XML document from stream and parse it.
 Source (Arc::URL &url)
 Fetch XML document from specified url and parse it.
 Source (const std::string &str)
 Read XML document from string.
Arc::XMLNode Get (void) const
 Get reference to parsed document.
 operator bool (void)
 Returns true if valid document is available.
 operator Arc::XMLNode (void)

Private Member Functions

 Source (void)

Private Attributes

Arc::XMLNode node

Detailed Description

Acquires and parses XML document from specified source.

This class is to be used to provide easy way to specify different sources for XML Authorization Policies and Requests.

Definition at line 13 of file Source.h.


Constructor & Destructor Documentation

ArcSec::Source::Source ( void  ) [inline, private]

Definition at line 16 of file Source.h.

{ };
ArcSec::Source::Source ( const Source s) [inline]

Copy constructor.

Use this constructor only for temporary objects. Parsed XML document is still owned by copied source and hence lifetime of create object should not exceed that of copied one.

Definition at line 22 of file Source.h.

:node(s.node) { };

Copy XML tree from XML subtree refered by xml.

Definition at line 8 of file Source.cpp.

                             :node(xml) {
}
ArcSec::Source::Source ( std::istream &  stream)

Read XML document from stream and parse it.

Definition at line 11 of file Source.cpp.

Here is the call graph for this function:

Fetch XML document from specified url and parse it.

This constructor is not implemented yet.

Definition at line 15 of file Source.cpp.

                      {
  //TODO: 
}
ArcSec::Source::Source ( const std::string &  str)

Read XML document from string.

Definition at line 19 of file Source.cpp.

                                   {
  // TODO: Extend XMLNode to do this in one operation
  Arc::XMLNode xml(str);
  xml.New(node);
}

Here is the call graph for this function:


Member Function Documentation

Arc::XMLNode ArcSec::Source::Get ( void  ) const [inline]

Get reference to parsed document.

Definition at line 33 of file Source.h.

{ return node; };

Here is the caller graph for this function:

ArcSec::Source::operator Arc::XMLNode ( void  ) [inline]

Definition at line 36 of file Source.h.

{ return node; };
ArcSec::Source::operator bool ( void  ) [inline]

Returns true if valid document is available.

Definition at line 35 of file Source.h.

{ return (bool)node; };

Member Data Documentation

Definition at line 15 of file Source.h.


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