summaryrefslogtreecommitdiff
path: root/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp')
-rw-r--r--TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp b/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp
index e177820261a..15fabe1f34a 100644
--- a/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp
+++ b/TAO/CIAO/tools/Config_Handlers/RT-CCM/test.cpp
@@ -33,17 +33,17 @@ parse_args (int argc, char *argv[])
"-i <input file> "
"\n",
argv [0]),
- -1);
+ -1);
}
// Indicates sucessful parsing of the command-line
- return 0;
+ return 0;
}
using namespace CIAO::Config_Handlers;
int main (int argc, char *argv[])
{
-
+
if (parse_args (argc, argv) != 0)
return 1;
@@ -52,38 +52,38 @@ int main (int argc, char *argv[])
//Create an XML_Helper for all the file work
XML_Helper the_helper;
-
+
if (xercesc::DOMDocument *doc = the_helper.create_dom (input_file))
{
//Read in the XSC type structure from the DOMDocument
ServerResourcesDef srd = ServerResources (doc);
-
+
// Convert XSC to idl datatype
SRD_Handler srd_handler (&srd);
-
+
std::cout << "Instance document import succeeded. Dumping contents to file\n";
-
+
CIAO::DAnCE::ServerResource *sr (srd_handler.srd_idl ());
-
+
SRD_Handler reverse_handler (sr);
-
+
xercesc::DOMDocument *the_xsc (the_helper.create_dom ("CIAO:ServerResources",
"http://www.dre.vanderbilt.edu/ServerResources"));
-
- std::cout << "NS:"
+
+ std::cout << "NS:"
<< std::string (xercesc::XMLString::transcode (the_xsc->getDocumentElement ()->getNamespaceURI ())) << std::endl
<< std::string (xercesc::XMLString::transcode (the_xsc->getDocumentElement ()->getPrefix ())) << std::endl
<< std::string (xercesc::XMLString::transcode (the_xsc->getDocumentElement ()->getLocalName ())) << std::endl
<< std::endl;
-
+
ServerResources (*reverse_handler.srd_xsc (), the_xsc);
-
+
// write out the result
the_helper.write_DOM (the_xsc, "output.srd");
}
-
+
std::cout << "Test completed!";
-
+
return 0;
-
+
}