summaryrefslogtreecommitdiff
path: root/TAO/tao/Resource_Factory.h
diff options
context:
space:
mode:
authorPhil Mesnier <mesnier_p@ociweb.com>2005-07-13 22:15:31 +0000
committerPhil Mesnier <mesnier_p@ociweb.com>2005-07-13 22:15:31 +0000
commit6920cb0e1e3d79bbe6f20094d1a76413d2203c69 (patch)
tree0180a382b2de6c08a2ce533295772efc03876222 /TAO/tao/Resource_Factory.h
parentfc4f3341059e297f19aa57abcffc61ed236557d7 (diff)
downloadATCD-6920cb0e1e3d79bbe6f20094d1a76413d2203c69.tar.gz
ChangeLog tag: Wed Jul 13 16:37:41 2005 Phil Mesnier <mesnier_p@ociweb.com>
Diffstat (limited to 'TAO/tao/Resource_Factory.h')
-rw-r--r--TAO/tao/Resource_Factory.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/TAO/tao/Resource_Factory.h b/TAO/tao/Resource_Factory.h
index d78937a555c..52f29c06cb1 100644
--- a/TAO/tao/Resource_Factory.h
+++ b/TAO/tao/Resource_Factory.h
@@ -23,6 +23,7 @@
#include "ace/Unbounded_Set.h"
#include "ace/SString.h"
+#include "ace/CDR_Base.h"
#include "tao/TAO_Export.h"
@@ -34,7 +35,6 @@ class TAO_Flushing_Strategy;
class TAO_Connection_Purging_Strategy;
class TAO_LF_Strategy;
-class TAO_Codeset_Manager;
class ACE_Lock;
// ****************************************************************
@@ -86,6 +86,34 @@ typedef ACE_Unbounded_Set_Iterator<TAO_Protocol_Item*>
// ****************************************************************
+class TAO_Export TAO_Codeset_Descriptor
+{
+public:
+ TAO_Codeset_Descriptor ();
+ ~TAO_Codeset_Descriptor ();
+ struct Translator_Node
+ {
+ char *name_;
+ Translator_Node *next_;
+ };
+ void ncs (ACE_CDR::ULong ncs, int mb = 0);
+ ACE_CDR::ULong ncs (void) const;
+ int max_bytes (void) const;
+
+ int ncs_set (void) const;
+
+ void add_translator (const char *name);
+ const Translator_Node *translators (void) const;
+
+private:
+ ACE_CDR::ULong ncs_;
+ int max_bytes_;
+ int ncs_set_;
+ Translator_Node *trans_base_;
+};
+
+// ****************************************************************
+
/**
* @class TAO_Resource_Factory
*
@@ -175,7 +203,8 @@ public:
*/
virtual TAO_ProtocolFactorySet *get_protocol_factories (void);
- virtual TAO_Codeset_Manager *get_codeset_manager(void);
+ // Returns either the char or wchar codeset descriptor object.
+ virtual const TAO_Codeset_Descriptor *get_codeset_descriptor(int for_wchar=0) const;
/**
* This method will loop through the protocol list and