summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjules <jules@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-28 20:30:22 +0000
committerjules <jules@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2004-09-28 20:30:22 +0000
commitebd55a5359a997723db514a0e41c8a2c6d3a3f39 (patch)
tree1bd6d6382364e86976b109246eea98b153abae67
parent10f84b7a2a663eb185a5df9388ef8aa0e5d0f66c (diff)
downloadATCD-ebd55a5359a997723db514a0e41c8a2c6d3a3f39.tar.gz
Tue Sep 28 15:26:41 2004 Jules White <jules@dre.vanderbilt.edu>
-rw-r--r--TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.cpp61
-rw-r--r--TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.h83
-rw-r--r--TAO/CIAO/DAnCE/Config_Handlers/ChangeLog7
3 files changed, 7 insertions, 144 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.cpp b/TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.cpp
deleted file mode 100644
index a490921f204..00000000000
--- a/TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.cpp
+++ /dev/null
@@ -1,61 +0,0 @@
-// $Id$
-
-#include "Base_Handler.h"
-#include "tao/CORBA_String.h"
-#include "tao/StringSeqC.h"
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- Base_Handler::Base_Handler (void)
- {
- }
-
- Base_Handler::~Base_Handler (void)
- {
- }
-
- void
- Base_Handler::populate_string (const ::XMLSchema::string <char> &str,
- CORBA::String_out &tofill)
- {
- tofill =
- CORBA::string_dup (str.c_str ());
- }
-
- void
- Base_Handler::populate_string_seq (const ::XMLSchema::string <char> &str,
- CORBA::StringSeq &tofill)
- {
- tofill.length (tofill.length () + 1);
- tofill[tofill.length () - 1] =
- CORBA::string_dup (str.c_str ());
- }
-
- bool
- Base_Handler::bind_ref (ACE_CString& id, size_t index)
- {
- int retval =
- this->idref_map_.bind (id, index);
-
- if (return < 0)
- return false;
-
- return true;
- }
-
- bool
- Base_Handler::find_ref (ACE_CString& id, size_t val)
- {
- int retval =
- this->idref_map_.find (id, val);
-
- if (return < 0)
- return false;
-
- return true;
- }
-
- }
-}
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.h b/TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.h
deleted file mode 100644
index fa450b128dd..00000000000
--- a/TAO/CIAO/DAnCE/Config_Handlers/Base_Handler.h
+++ /dev/null
@@ -1,83 +0,0 @@
-//==============================================================
-/**
- * @file Base_Handler.h
- *
- * $Id$
- *
- * @author Jules White <jules@dre.vanderbilt.edu>
- */
-//================================================================
-
-#ifndef CIAO_CONFIG_HANDLERS_BASE_HANDLER_H
-#define CIAO_CONFIG_HANDLERS_BASE_HANDLER_H
-#include /**/ "ace/pre.h"
-
-#include "Config_Handlers/Config_Handlers_Export.h"
-
-#if !defined (ACE_LACKS_PRAGMA_ONCE)
-# pragma once
-#endif /* ACE_LACKS_PRAGMA_ONCE */
-
-#include "ace/Hash_Map_Manager.h"
-#include "ace/Null_Mutex.h"
-#include "Config_Handlers/XSCRT/XMLSchema.hpp"
-
-namespace CORBA
-{
- class String_out;
- class StringSeq;
-}
-
-namespace CIAO
-{
- namespace Config_Handlers
- {
- /*
- * @class Base_Handler
- *
- * @brief
- */
- class Config_Handlers_Export Base_Handler
- {
- public:
- Base_Handler (void);
-
- virtual ~Base_Handler (void);
-
- /// Populates a CORBA string with the provided XMLString.
- void populate_string (const ::XMLSchema::string <char> &str,
- CORBA::String_out &tofill);
-
- /// Appends the string provided to the provided StringSeq.
- void populate_string_seq (const ::XMLSchema::string <char> &str,
- CORBA::StringSeq &tofill);
-
- /// The Deployment spec references elements by their position
- /// within their parent sequence.
- /**
- * These two methods allow an element's index to be
- * stored/retrieved. Map the index <index> of an element to its
- * IDREF <id>.
- */
- bool bind_ref (ACE_CString& id, size_t index);
-
- /// Retrieve the index of an element with its IDREF <id>.
- /**
- * @\return true if the <id> was found.
- */
- bool find_ref (ACE_CString& id, size_t val);
-
- private:
- typedef ACE_Hash_Map_Manager<ACE_CString,
- size_t,
- ACE_Null_Mutex> IDREF_MAP;
-
- /// The map used to store and look up the indexes
- /// of elements referenced by their index.
- IDREF_MAP idref_map_;
- };
- }
-}
-
-#include /**/ "ace/post.h"
-#endif /* CIAO_CONFIG_HANDLERS_BASE_HANDLER_H*/
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/ChangeLog b/TAO/CIAO/DAnCE/Config_Handlers/ChangeLog
index f3fec86dc9d..ef70bdc0f1b 100644
--- a/TAO/CIAO/DAnCE/Config_Handlers/ChangeLog
+++ b/TAO/CIAO/DAnCE/Config_Handlers/ChangeLog
@@ -1,3 +1,10 @@
+Tue Sep 28 15:26:41 2004 Jules White <jules@dre.vanderbilt.edu>
+
+ * DAnCE/Config_Handlers/Base_Handler.cpp:
+ * DAnCE/Config_Handlers/Base_Handler.h:
+
+ Removed Base_Handler since it is no longer used.
+
Tue Sep 28 18:38:41 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>
* DAnCE/Config_Handlers/ADD_Handler.cpp: