Results 1 to 2 of 2

Thread: Is it possible to include a custom data type (OpenCV IplImage) in a slice definition?

  1. #1
    Gabriel is offline Registered User
    Name: Gabriel Urzaiz
    Organization: Universidad Anahuac Mayab
    Project: Licence plate recognition
    Join Date
    May 2011
    Posts
    1

    Is it possible to include a custom data type (OpenCV IplImage) in a slice definition?

    Is it possible to include a custom data type in a slice definition? Specifically I'm trying to define an OpenCV IplImage type in a slice definition, as follows:

    module VQN {
    interface vqn1 {
    void printStringENTvqn1(int a, int b, int c, int d, IplImage *s);
    };
    };

    Thanks in advance,
    Gabriel.

  2. #2
    mes's Avatar
    mes
    mes is offline ZeroC Staff
    Name: Mark Spruiell
    Organization: ZeroC, Inc.
    Project: Ice Developer
    Join Date
    Feb 2003
    Location
    California
    Posts
    1,445
    Hello Gabriel,

    Welcome to the forum!

    Quote Originally Posted by Gabriel View Post
    Is it possible to include a custom data type in a slice definition
    I'm afraid it's not possible to use a C++ type in your Slice definitions. Ice for Java and Ice for .NET support a serializable mechanism, but in C++ you will either need to define an equivalent Slice type, or convert your C++ object into a byte array and transfer it as a Slice sequence<byte>.

    Best regards,
    Mark

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. slice definition if dfstream file
    By moshehak in forum Help Center
    Replies: 1
    Last Post: 02-21-2008, 07:47 AM
  3. slice definition for type ID?
    By peterlspot in forum Comments
    Replies: 5
    Last Post: 11-28-2007, 10:13 PM
  4. custom meta data directives
    By Greenhippo in forum Help Center
    Replies: 3
    Last Post: 07-03-2007, 07:21 AM
  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
  •