diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-12-25 00:44:40 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 1997-12-25 00:44:40 +0000 |
commit | 099c155757861af24c85033cffd47319541f5e38 (patch) | |
tree | f5623b6d18fc3db3eab61c96a4aa50bae58c6c8a | |
parent | 53b3f94340e2e99d48a4bd51817bfa568ac1d1a6 (diff) | |
download | ATCD-099c155757861af24c85033cffd47319541f5e38.tar.gz |
*** empty log message ***
-rw-r--r-- | TAO/ChangeLog-98c | 4 | ||||
-rw-r--r-- | TAO/VERSION | 2 | ||||
-rw-r--r-- | TAO/tao/nvlist.i | 84 |
3 files changed, 87 insertions, 3 deletions
diff --git a/TAO/ChangeLog-98c b/TAO/ChangeLog-98c index 302058eef29..09906634295 100644 --- a/TAO/ChangeLog-98c +++ b/TAO/ChangeLog-98c @@ -1,6 +1,6 @@ -Wed Dec 24 18:31:24 1997 Douglas C. Schmidt <schmidt@cs.wustl.edu> +Wed Dec 24 18:44:02 1997 Douglas C. Schmidt <schmidt@tango.cs.wustl.edu> - * TAO version 0.0.48, released Wed Dec 24 18:31:24 1997. + * tao: Added the nvlist.i file to the tao/ directory. Wed Dec 24 18:11:08 1997 Aniruddha Gokhale <gokhale@mambo.cs.wustl.edu> diff --git a/TAO/VERSION b/TAO/VERSION index 99ea0fdc9f7..0df4ac19e33 100644 --- a/TAO/VERSION +++ b/TAO/VERSION @@ -1,4 +1,4 @@ -This is TAO version 0.0.48, released Wed Dec 24 18:31:24 1997. +This is TAO version 0.0.47, released Wed Dec 24 18:31:24 1997. If you have any problems with TAO, please send email to Douglas C. Schmidt (schmidt@cs.wustl.edu) and Chris Cleeland diff --git a/TAO/tao/nvlist.i b/TAO/tao/nvlist.i new file mode 100644 index 00000000000..c85245a58ed --- /dev/null +++ b/TAO/tao/nvlist.i @@ -0,0 +1,84 @@ +// This may look like C, but it's really -*- C++ -*- + +// ============================================================================ +// +// = LIBRARY +// TAO +// +// = FILENAME +// corbacom.i +// +// = DESCRIPTION +// CORBA C/C++/COM mapping for Win32 +// +// = AUTHOR +// Copyright 1994-1995 by Sun Microsystems Inc. +// and +// Aniruddha Gokhale +// +// ============================================================================ + + +// =methods of class CORBA::NamedValue + +// constructor +ACE_INLINE +CORBA_NamedValue::CORBA_NamedValue (void) + : refcount_ (0), + flags_ (0), + name_ (0) +{ +} + +// return the name +ACE_INLINE TAO_CONST char* +CORBA_NamedValue::name (void) const +{ + return this->name_; +} + +// return the value +ACE_INLINE CORBA::Any_ptr +CORBA_NamedValue::value (void) const +{ + return (const CORBA::Any_ptr)&this->any_; +} + +// return the flags +ACE_INLINE CORBA::Flags +CORBA_NamedValue::flags (void) const +{ + return this->flags_; +} + + +// = methods for the NVList class + +// constructor +ACE_INLINE +CORBA_NVList::CORBA_NVList (void) + : values_ (0), + max_ (0), + len_ (0), + refcount_ (1) +{ +} + +ACE_INLINE CORBA::ULong +CORBA_NVList::count (void) const +{ + return this->len_; +} + +ACE_INLINE CORBA::NamedValue_ptr +CORBA_NVList::item (CORBA::ULong n, CORBA::Environment &env) +{ + env.clear (); + if (n >= this->len_) // 0 based indexing + { + env.exception (new CORBA::TypeCode::Bounds ()); + return 0; + } + else + return &this->values_ [n]; +} |