comp.lang.ada
 help / color / mirror / Atom feed
* Bind Ada to a C++ class containing a private structure
@ 2018-08-07 23:36 Roger
  2018-08-08  0:37 ` Roger
  0 siblings, 1 reply; 2+ messages in thread
From: Roger @ 2018-08-07 23:36 UTC (permalink / raw)


I'm having trouble interfacing to a C++ class like Class A below.
I've been successfully interfacing to C++ classes by using  C-like wrapper C++ "classless" routines that call  C++ classes so as to avoid name wrangling and other class interfacing problems.
However, so far, I can't figure out how to interface to classes like Class A below that contains private data.
Any advice, greatly appreciated.

class A
{
A();

...

private
StrucRef *HiddenStruct;
};


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Bind Ada to a C++ class containing a private structure
  2018-08-07 23:36 Bind Ada to a C++ class containing a private structure Roger
@ 2018-08-08  0:37 ` Roger
  0 siblings, 0 replies; 2+ messages in thread
From: Roger @ 2018-08-08  0:37 UTC (permalink / raw)


I probably should have included some procedures in the example:
class A
{
 A();
 
    const void* data(void) const;
    void update(const void* data_,const size_t length);


 private
 StrucRef *HiddenStruct;
 };


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-08-08  0:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-07 23:36 Bind Ada to a C++ class containing a private structure Roger
2018-08-08  0:37 ` Roger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox