Go Back   ZeroC Forums > Comments

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 05-24-2005
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
problem aboiut stream hierarchy

I am studying Ice's source code. I have noticed that there are the following class hierarchy about steam:
1)
::IceInternal::Buffer
::IceInternal::BasicStream

::IceInternal::BasicInputStream/::IceInternal::BasicOutputStream

2)
::Ice::InputStream/::Ice::OutputStream
::Ice::InputStreamI/::Ice::OutputStreamI

but strangely, in the real code of Ice, only ::IceInternal::Buffer/::IceInternal::BasicStream are used and the other classes don't be really used! why ?
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
Reply With Quote
  #2 (permalink)  
Old 05-24-2005
marc's Avatar
marc marc is online now
ZeroC Staff
 
Name: Marc Laukien
Organization: ZeroC, Inc.
Project: The Internet Communications Engine
 
Join Date: Feb 2003
Location: Florida
Posts: 1,780
The IceInternal classes are highly optimized for our generated stubs and skeletons. They don't follow the regular Ice language mapping rules (for example, they are stack allocated, and not reference counted like all other Ice classes). They should not be used for user code, as they are Ice internal classes only, and might change without notice. Instead, user code should use the documented stream classes in the Ice namespace.
Reply With Quote
  #3 (permalink)  
Old 05-25-2005
rc_hz rc_hz is offline
Registered User
 
Name: Eric RC
Organization: www.genband.com
Project: No project yet
 
Join Date: Jul 2004
Location: Hangzhou, China
Posts: 189
Send a message via MSN to rc_hz
-->
Quote:
Originally Posted by marc
...They should not be used for user code, as they are Ice internal classes only, and might change without notice. Instead, user code should use the documented stream classes in the Ice namespace.
Thanks. I know that they are just used internally in Ice. I am just interested in the implementation of Ice and now studying Ice source code.
__________________
Eric RC
www.genband.com (telecommunication)
I like ICE (Ice for C++/Java/Python)
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I use Ice to process stream hyz1840 Help Center 3 05-25-2006 07:19 AM
Stream helper functions and C++ templates copton Help Center 7 01-20-2006 02:37 PM
Java Object Output Stream and Ice brian Help Center 8 10-31-2005 10:18 AM
A question about Exception hierarchy in Ice rc_hz Help Center 2 06-15-2005 04:35 AM
single stream for two-way communication? vukicevic Help Center 2 05-19-2003 03:17 PM


All times are GMT -4. The time now is 07:29 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0
(c) 2008 ZeroC, Inc.