blob: 8b747700f3f233965522b1869506e4c6b7f48f94 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
// -*- C++ -*-
//=============================================================================
/**
* @file Codeset_Descriptor.h
*
* @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 () const;
int max_bytes () const;
int num_translators () const;
void add_translator (const ACE_TCHAR *name);
Translator_Node *translators ();
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 */
|