Back to index

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

Convenience class for obtaining XML document from file. More...

#include <Source.h>

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

List of all members.

Public Member Functions

 SourceFile (const SourceFile &s)
 See corresponding constructor of Source class.
 SourceFile (const char *name)
 Read XML document from file named name and store it.
 SourceFile (const std::string &name)
 Read XML document from file named name and store it.
 ~SourceFile (void)
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

 SourceFile (void)

Private Attributes

std::ifstream * stream

Detailed Description

Convenience class for obtaining XML document from file.

Definition at line 40 of file Source.h.


Constructor & Destructor Documentation

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

Definition at line 43 of file Source.h.

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

See corresponding constructor of Source class.

Definition at line 46 of file Source.h.

:Source(s),stream(NULL) {};
ArcSec::SourceFile::SourceFile ( const char *  name)

Read XML document from file named name and store it.

Definition at line 25 of file Source.cpp.

                                      :Source(*(stream = new std::ifstream(name))) {
}
ArcSec::SourceFile::SourceFile ( const std::string &  name)

Read XML document from file named name and store it.

Definition at line 28 of file Source.cpp.

                                           :Source(*(stream = new std::ifstream(name.c_str()))) {
}

Definition at line 31 of file Source.cpp.

                            {
  if(stream) delete stream;
}

Member Function Documentation

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

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, inherited]

Definition at line 36 of file Source.h.

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

Returns true if valid document is available.

Definition at line 35 of file Source.h.

{ return (bool)node; };

Member Data Documentation

std::ifstream* ArcSec::SourceFile::stream [private]

Definition at line 42 of file Source.h.


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