Acquires and parses XML document from specified source. More...
#include <Source.h>
Public Member Functions | |
Source (const Source &s) | |
Source (Arc::XMLNode xml) | |
Source (std::istream &stream) | |
Source (Arc::URL &url) | |
Source (const std::string &str) | |
Arc::XMLNode | Get (void) const |
operator bool (void) |
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.
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 created object should not exceed that of copied one.
ArcSec::Source::Source | ( | Arc::XMLNode | xml | ) |
Use XML subtree refered by xml.
There is no copy of xml made. Hence lifetime of this object should not exceed that of xml.
ArcSec::Source::Source | ( | Arc::URL & | url | ) |
Fetch XML document from specified url and parse it.
This constructor is not implemented yet.