Results 1 to 2 of 2

Thread: slice definition if dfstream file

  1. #1
    moshehak is offline Registered User
    Name: moshe hakimian
    Organization: cell2bet company
    Project: allow cellular mobiles to play games
    Join Date
    Jan 2008
    Posts
    6

    slice definition if dfstream file

    Hello,

    i'm trying to define function that returns a fstream file

    fstream GetFile();
    or
    FILE GetFile();

    example:

    [["cpp:include:fstream"]]

    module Filesystem {

    interface File {
    ["cpp:type:fstream"] GetFile();
    };


    };
    i can't find the mapping of fstream or FILE in SLICE
    could you help me on that?

    have a great day,moshe

  2. #2
    dwayne's Avatar
    dwayne is offline ZeroC Staff
    Name: Dwayne Boone
    Organization: ZeroC, Inc.
    Project: Internet Communications Engine
    Join Date
    Jan 2005
    Location
    St. John's, Newfoundland
    Posts
    397
    Hi,

    You should read this FAQ and Matthew's article in Issue 20 of the Ice newsletter for information on how to do file transfers with Ice. Basically, Slice does not define specific types for file access, but instead files need to be transferred as byte sequences.

    You should also read chapter 4 of the Ice manual for complete documentation on the Slice language.

    Regards,
    Dwayne

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Using IceUtil::Time in a Slice definition
    By sidney in forum Help Center
    Replies: 2
    Last Post: 03-19-2010, 04:33 AM
  2. Replies: 4
    Last Post: 02-08-2010, 04:38 PM
  3. ice.slice definition problem
    By Marek Nos in forum Help Center
    Replies: 0
    Last Post: 05-27-2009, 07:51 AM
  4. slice definition for type ID?
    By peterlspot in forum Comments
    Replies: 5
    Last Post: 11-28-2007, 10:13 PM
  5. How to use Slice defined Types in another definition
    By Venkat Seeth in forum Help Center
    Replies: 4
    Last Post: 02-22-2005, 12:24 PM

Posting Permissions

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