summaryrefslogtreecommitdiff
path: root/TAO/tao/Codeset/Codeset_Descriptor.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/Codeset/Codeset_Descriptor.h')
-rw-r--r--TAO/tao/Codeset/Codeset_Descriptor.h65
1 files changed, 65 insertions, 0 deletions
diff --git a/TAO/tao/Codeset/Codeset_Descriptor.h b/TAO/tao/Codeset/Codeset_Descriptor.h
new file mode 100644
index 00000000000..a0a8b89363c
--- /dev/null
+++ b/TAO/tao/Codeset/Codeset_Descriptor.h
@@ -0,0 +1,65 @@
+// -*- C++ -*-
+
+//=============================================================================
+/**
+ * @file Codeset_Descriptor.h
+ *
+ * $Id$
+ *
+ * @author Phil Mesnier
+ */
+//=============================================================================
+
+#ifndef TAO_CODESET_DESCRIPTOR_H
+#define TAO_CODESET_DESCRIPTOR_H
+
+#include /**/ "ace/pre.h"
+
+#include "tao/Codeset/codeset_export.h"
+#include "ace/CDR_Base.h"
+
+#if !defined (ACE_LACKS_PRAGMA_ONCE)
+# pragma once
+#endif /* ACE_LACKS_PRAGMA_ONCE */
+
+#include "tao/Codeset_Descriptor_Base.h"
+
+TAO_BEGIN_VERSIONED_NAMESPACE_DECL
+
+class TAO_Codeset_Translator_Factory;
+
+class TAO_Codeset_Export TAO_Codeset_Descriptor
+ : public TAO_Codeset_Descriptor_Base
+{
+public:
+ TAO_Codeset_Descriptor ();
+ virtual ~TAO_Codeset_Descriptor ();
+
+ struct Translator_Node
+ {
+ ACE_TCHAR *name_;
+ TAO_Codeset_Translator_Factory *translator_factory_;
+ Translator_Node *next_;
+ };
+
+ void ncs (ACE_CDR::ULong ncs);
+ void ncs (const ACE_TCHAR *name);
+ ACE_CDR::ULong ncs (void) const;
+ int max_bytes (void) const;
+ int num_translators (void) const;
+
+ void add_translator (const ACE_TCHAR *name);
+ Translator_Node *translators (void);
+
+private:
+ ACE_CDR::ULong ncs_;
+ int max_bytes_;
+ int num_translators_;
+ Translator_Node *trans_base_;
+};
+
+TAO_END_VERSIONED_NAMESPACE_DECL
+
+#include /**/ "ace/post.h"
+
+#endif /* TAO_CODESET_DESCRIPTOR_H */