diff options
author | gokhale <asgokhale@users.noreply.github.com> | 1997-07-17 16:42:17 +0000 |
---|---|---|
committer | gokhale <asgokhale@users.noreply.github.com> | 1997-07-17 16:42:17 +0000 |
commit | 36220757909424cc73f96e5c4cae0bac03aaf5e6 (patch) | |
tree | f5809429eb9156aebe35f2cb41d2a98accbf1d57 /TAO/tao/params.cpp | |
parent | bc5011a80e297837f8fcd55845e43d75f7c4f199 (diff) | |
download | ATCD-36220757909424cc73f96e5c4cae0bac03aaf5e6.tar.gz |
The most important thing was many changes in typecode.*, made unions
to work (encode, decode), removed a huge error in "align_binary", and
added lots of comments.
Diffstat (limited to 'TAO/tao/params.cpp')
-rw-r--r-- | TAO/tao/params.cpp | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/TAO/tao/params.cpp b/TAO/tao/params.cpp index 47720dc1782..53b519c3c3b 100644 --- a/TAO/tao/params.cpp +++ b/TAO/tao/params.cpp @@ -35,6 +35,32 @@ TAO_OA_Parameters::instance (TAO_OA_Parameters *new_instance) return old_instance; } +void +TAO_OA_Parameters::demux_strategy (const char* strategy) +{ + // Determine the demux strategy based on the given name + if (!ACE_OS::strcmp (strategy, "linear")) + { + this->demux_ = TAO_LINEAR; + } + else if (!ACE_OS::strcmp (strategy, "dynamic_hash")) + { + this->demux_ = TAO_DYNAMIC_HASH; + } + else if (!ACE_OS::strcmp (strategy, "user_def")) + { + this->demux_ = TAO_USER_DEFINED; + } + else if (!ACE_OS::strcmp (strategy, "active_demux")) + { + this->demux_ = TAO_ACTIVE_DEMUX; + } + else + { + // Provide fallback! + this->demux_ = TAO_DYNAMIC_HASH; + } +} // Pointer to the Singleton instance. TAO_OA_Parameters *TAO_OA_Parameters::instance_ = 0; |