[so] C++ Monitor
Alexandru Mosoi
brtzsnr at gmail.com
Thu Nov 29 20:14:03 EET 2007
On Nov 29, 2007 6:03 PM, Octavian Purdila <tavi at cs.pub.ro> wrote:
> On Thursday 29 November 2007, Dan Persa wrote:
> > Sal,
> > Avem voie
> > sa facem o librarie care sa contina clasa Monitor cu API-ul specficat,
> > in loc de o librarie de functii?
> >
class Monitor; // forward declaration of class Monitor
// poate fi folosit ca pointeri si referinte
Monitor* Create();
int Destroy(Monitor*);
int Create(Monitor*);
...
in implementarea ta (si a mea)... poti sa faci Monitor o clasa si sa
faci ca api-ul sa apeleze functiile membre a monitorului. atentie cand
creezi distrugi montiorul.
--
Alexandru Moşoi
http://alexandru.mosoi.googlepages.com
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
More information about the so
mailing list