Results 1 to 2 of 2

Thread: Question about IceUtil?

  1. #1
    JaneShang is offline Registered User
    Name: YuLiang, Shang
    Organization: Korea Advance Insitute of Science and Technology.
    Project: Human Robitics Remote Controller
    Join Date
    Apr 2005
    Posts
    14

    Question about IceUtil?

    Dear Sir,

    As a matter of fact, ICE supports many languages and platforms. However, now I would wirte my own application based on ICE. I need to access I/O and file,etc. I notice that IceUitl implement some support function such as Thread,String.

    My question is how to write more portable applications based on ICE. For example, I would define an integer as: int x; or something like ICE::int

    ICE wrapper all the functions inside of STLport, or I could directly use functions inside of STLport.

    Sometime, I got confused. When I want to access I/O, firstly I would use Iostream from STLport, but I wonder whether ICE provides something like ICE::io

    That's all.

    Good luck!

    JaneShang

  2. #2
    bernard's Avatar
    bernard is offline ZeroC Staff
    Name: Bernard Normier
    Organization: ZeroC, Inc.
    Project: Ice
    Join Date
    Feb 2003
    Location
    Palm Beach Gardens, FL
    Posts
    1,294
    Hello,

    IceUtil is (as its name indicates) a utility library with a number of classes (Thread, Mutex, Monitor, CTRL-C handler ...). It does not duplicate or wrap standard portable classes such as standard containers/iterators/algorithm, or the iostream library; for example Ice/IceUtil uses simply std::string.

    Regarding Ice::Int vers int, currently they are identical (32 bit signed integer) on all supported Ice platforms, so it does not matter much which one you pick.
    Assuming Ice is ported one day to a platform where int is not a 32 bit signed integer, Ice::Int will be still be a typedef to a 32 bit signed integer (assuming there is such a native type, which is extremely likely!).

    Hope this helps!
    Bernard

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Question regarding IceUtil::generateUUID()
    By grembo in forum Comments
    Replies: 1
    Last Post: 06-23-2010, 04:44 PM
  2. IceUtil::ThreadSyscallException
    By zeronumber in forum Help Center
    Replies: 2
    Last Post: 12-16-2009, 08:08 PM
  3. IceUtil problem??
    By peter in forum Help Center
    Replies: 1
    Last Post: 04-15-2009, 06:01 PM
  4. Question about demo\IceUtil\workqueue\WorkQueue.cpp
    By Yunqiao Yin in forum Bug Reports
    Replies: 4
    Last Post: 11-22-2006, 08:56 PM
  5. Zero value for IceUtil::Time
    By catalin in forum Help Center
    Replies: 1
    Last Post: 10-05-2004, 07:28 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •