Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members

xml-sndrcv.h

Go to the documentation of this file.
00001 #ifndef DVLOGIN_XML_SNDRCV_H
00002 #define DVLOGIN_XML_SNDRCV_H
00003 
00004 // $Id: xml-sndrcv.h,v 1.3 2003/08/08 09:51:00 dvermeir Exp $
00005 #include <string>
00006 #include <iostream>
00007 #include <stdexcept>
00008 #include <dvxml/xml.h>
00009 
00010 namespace Dv {
00011 namespace Xml {
00012 
00013 /** Receive an XML document from a stream (usually a socket)
00014  * @param document received.
00015  * @param is stream to receive document from.
00016  * @exception Dv::Xml::Exception if anything goes wrong.
00017  */
00018 void receive(Dv::Xml::Document& document, std::istream& is) throw (Dv::Xml::Exception);
00019 
00020 /** Send an XML document over a stream (usually a socket)
00021  * @param document to send.
00022  * @param os stream to send document to.
00023  * @exception Dv::Xml::Exception if anything goes wrong.
00024  */
00025 void send(const Dv::Xml::Document& document, std::ostream& os) throw (Dv::Xml::Exception);
00026 
00027 }}
00028 #endif

dvticket-0.7.1 [24 October, 2003]