Project stdui: "Simple Type Dialog User-Interface"

|
Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

stdui.cpp File Reference

#include <iostream>
#include <cstdlib>
#include <stdui.h>
#include <stdobject.h>

Include dependency graph for stdui.cpp:

Go to the source code of this file.


Namespaces

namespace  std

Functions

bool destroy_notify (stdui::stdobject *o)
int main (int argc, char *argv[])

Function Documentation

bool destroy_notify stdui::stdobject o  ) 
 

Definition at line 34 of file stdui.cpp.

Referenced by main().

00035 {
00036    cerr << "object named:[" << o->name() << "] in destructor state..." << endl;
00037    return true;
00038 }

int main int  argc,
char *  argv[]
 

Definition at line 40 of file stdui.cpp.

References stdui::stdobject::destroy_delegate(), and destroy_notify().

00041 {
00042    cout << "Hello, world!" << endl;
00043    stdui::stdobject * object = new stdui::stdobject(0l,"stdobject test");
00044    //sigc::slot<bool, stdui::stdobject*> sl = sigc::ptr_fun(&destroy_notify);
00045    //object->destroy_signal().connect(sl);
00046    (void)object->destroy_delegate( sigc::ptr_fun(&destroy_notify) );
00047    cerr << "a stdobject is created, and one destroy delegate has been connected..." << endl;
00048    sleep(2);
00049    cerr << "now deleting the object and see if the delegate function is called ..." << endl;
00050    delete object;
00051    
00052   return EXIT_SUCCESS;
00053 }

Here is the call graph for this function:


API Documentation Generated by:  doxygen 1.4.0
About the author | Site started with trial version of DreamWeaver MX 2004 | Finalizing with  | Contact | ©2005, Serge Lussier ( Bretzel )