[omniORB] Fixed and string output
Duncan Grisby
duncan@grisby.org
Thu Jul 11 18:56:00 2002
On Thursday 11 July, Mike Mascari wrote:
> I have a rather stupid question. How can I convert a Fixed type to (char
> *) or (const char *) ?
Sadly, the rather stupid answer is that there is no standard (direct)
way to do it. An omniORB specific way is to call the NP_asString()
method. It returns a char* that you must free with
CORBA::string_free().
The C++ mapping does say that there should be stream operators to
read/write Fixeds to streams, but they are still on the todo list.
Cheers,
Duncan.
--
-- Duncan Grisby --
-- duncan@grisby.org --
-- http://www.grisby.org --