|
List Info
Thread: C encapsulation
|
|
| C encapsulation |
  United States |
2008-02-29 07:28:04 |
|
Hi all,
I want to use C structs within Eiffel (for testing C structs persistence in db4o), but don't know how to do it. For example, I have
typedef struct point {
int x;
int y;
} Point;
in header.h, the question is how to create an instance of Point in Eiffel.
Regards,
Ruihua
__________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
[Non-text portions of this message have been removed]
__._,_.___
.
__,_._,___
|
| Re: C encapsulation |
  United States |
2008-02-29 07:43:29 |
|
You should first wrap the C struct into an Eiffel class. For a good
and simple example, please see class WEL_GDIP_RECT.
--- In eiffel_software%40yahoogroups.com">eiffel_software yahoogroups.com, Ruihua Jin <jin.ruihua ...> wrote:
>
> Hi all,
>
> I want to use C structs within Eiffel (for testing C structs
persistence in db4o), but don't know how to do it. For example, I have
>
> typedef struct point {
> int x;
> int y;
> } Point;
>
> in header.h, the question is how to create an instance of Point in
Eiffel.
>
> Regards,
> Ruihua
>
>
>
>
>
__________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> [Non-text portions of this message have been removed]
>
__._,_.___
.
__,_._,___
|
| RE: C encapsulation |

|
2008-02-29 09:04:51 |
|
__,_._,___
|
| RE: C encapsulation |
  Canada |
2008-03-01 04:24:08 |
|
__,_._,___
|
[1-4]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|