summaryrefslogtreecommitdiff
path: root/ACEXML/common/InputSource.cpp
diff options
context:
space:
mode:
authornobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-07-09 10:58:52 +0000
committernobody <nobody@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2006-07-09 10:58:52 +0000
commit7b7e2c928b9972f1d3825810c3a2973a3114e405 (patch)
treed961c0c89999c15d47203cde076eeff7f1450ed1 /ACEXML/common/InputSource.cpp
parentfa46c3cc6c235c1247ba2e1feaf87b4e81412980 (diff)
downloadATCD-TAO-1_5_2.tar.gz
This commit was manufactured by cvs2svn to create tag 'TAO-1_5_2'.TAO-1_5_2
Diffstat (limited to 'ACEXML/common/InputSource.cpp')
-rw-r--r--ACEXML/common/InputSource.cpp106
1 files changed, 0 insertions, 106 deletions
diff --git a/ACEXML/common/InputSource.cpp b/ACEXML/common/InputSource.cpp
deleted file mode 100644
index 8673420d732..00000000000
--- a/ACEXML/common/InputSource.cpp
+++ /dev/null
@@ -1,106 +0,0 @@
-// -*- C++ -*- $Id$
-
-#include "ACEXML/common/InputSource.h"
-#include "ACEXML/common/StreamFactory.h"
-#include "ace/ACE.h"
-#include "ace/Swap.h"
-
-ACEXML_InputSource::ACEXML_InputSource (void)
- : charStream_ (0),
- encoding_ (0),
- publicId_ (0),
- systemId_ (0)
-{
-}
-
-ACEXML_InputSource::ACEXML_InputSource (ACEXML_CharStream *stm)
- : charStream_ (stm),
- encoding_ (ACE::strnew (stm->getEncoding())),
- publicId_ (0),
- systemId_ (stm->getSystemId() ? ACE::strnew (stm->getSystemId()): 0)
-{
-}
-
- /*
- * Create a new input source with a character stream.
- *
- */
-
-ACEXML_InputSource::ACEXML_InputSource (const ACEXML_Char *systemId)
- : charStream_ (0),
- encoding_ (0),
- publicId_ (0),
- systemId_ (ACE::strnew (systemId))
-{
- ACEXML_StreamFactory factory;
- ACEXML_CharStream* stm = factory.create_stream (this->systemId_);
- if (stm)
- {
- this->setCharStream (stm);
- this->setEncoding (this->charStream_->getEncoding());
- }
-}
-
-ACEXML_InputSource::~ACEXML_InputSource (void)
-{
- delete[] this->publicId_;
- this->publicId_ = 0;
- delete[] this->systemId_;
- this->systemId_ = 0;
- delete this->charStream_;
- this->charStream_ = 0;
- delete[] this->encoding_;
- this->encoding_ = 0;
-}
-
-ACEXML_CharStream *
-ACEXML_InputSource::getCharStream (void) const
-{
- return this->charStream_;
-}
-
-const ACEXML_Char *
-ACEXML_InputSource::getEncoding (void) const
-{
- return this->encoding_;
-}
-
-const ACEXML_Char *
-ACEXML_InputSource::getPublicId (void) const
-{
- return this->publicId_;
-}
-
-const ACEXML_Char *
-ACEXML_InputSource::getSystemId (void) const
-{
- return this->systemId_;
-}
-
-void
-ACEXML_InputSource::setCharStream (ACEXML_CharStream *stm)
-{
- delete this->charStream_;
- this->charStream_ = stm;
-}
-
-void
-ACEXML_InputSource::setEncoding (const ACEXML_Char *encoding)
-{
- delete[] this->encoding_;
- this->encoding_ = ACE::strnew (encoding);
-}
-
-void
-ACEXML_InputSource::setPublicId (const ACEXML_Char *publicId)
-{
- delete[] this->publicId_;
- this->publicId_ = ACE::strnew (publicId);
-}
-
-void
-ACEXML_InputSource::setSystemId (const ACEXML_Char *systemId)
-{
- delete[] this->systemId_;
- this->systemId_ = ACE::strnew (systemId);
-}