#include <Codeset_Manager.h>
Collaboration diagram for TAO_Codeset_Manager:
The Codeset Manager is owned by the ORB_Core, initialized through Resource Factory configuration options. The codeset manager participates in profile creation by servers and connection establishment by clients. The involvement is necessary to supply a codeset component to the profile including for both chars and wide chars the native code set and any conversion code sets for which translators are available. The codeset manager is also responsible for determining the transmission codesets based an the local and remote codeset information. The transmission codesets are communicated via a service context attached to the first request sent on the new connection.
|
Typedefs for containers containing the list of codesets factories for character and wide character. |
|
Iterators.
|
|
|
|
|
|
Called by the resource factory to add a potential codeset translator for char data. The actual factory will be added to the list later, if its ncs matches that of the codeset manager. |
|
Called by the resource factory to add a potential codeset translator for wchar data. The actual factory will be added to the list later, if its ncs matches that of the codeset manager. |
|
Compute the TCS for Char/WChar asper the CORBA Specification.
|
|
Called by the resource factory to signify the end of initialization. This will traverse the list of named codeset translator factories and add any of those that have a native codeset id matching the manager's native codeset id. |
|
Called by a client object to generate service context at this time Transport has the TCS for Char and WChar |
|
Get the translator between our ncs_c and the supplied tcs_c.
|
|
|
|
Get the translator between our ncs_w and the supplied tcs_w.
|
|
Initialise the specific type codeset factories. Traverse the list of codeset factories, populating the list of conversion codeset values with the translated codeset id from each factory that has a matching native codeset. Those factories that do not have a matching codeset are not retained in the list. |
|
Find the intersection of CodesetIds between Client and Server CCS.
|
|
Determine compatibility between two codesets via the codeset registry.
|
|
Find CodesetId in the codeset component.
|
|
Called from an Object of TAO_Messaging for every request at server side to process service context and set TCS for Char/WChar |
|
Called by an object of TAO_Acceptor to set NCS and CCS values for Char/Wchar in to the Object Reference. |
|
Called by the resource factory to set the native char codeset id.
|
|
Called by the resource factory to set the native wchar codeset id. The maxbytes value is used to communicate the width of untranslated wide characters on the stream. This size may be smaller than the size of a wchar_t. |
|
Called from an object of "TAO_GIOP_Invocation" to set TCS on the Transport |
|
The lists of available translators for both chars and wchars.
|
|
The CodeSetComponentInfo struct contains all of the information regarding the code sets this application recognizes. This is where the native code set for both char and wchar are stored. |
|
NCS for char is defaulted to ISO 8859-1:1987; Latin Alphabet No. 1.
|
|
NCS for wchar is defaulted to 0 (not used), but people wishing to provide a non-compliant default wchar codeset may do so. |
|
The UTF16 BOM (Byte Order Marker) translator is unique in that it is required when UTF16 is used as both the native and transmitted codeset. It exists to insert or extract the BOM preceeding Wchar data in the stream. |
|
|