GNUEDMA
 October, 2003
  main | overview | repositories | object creation | inheritance | aop | use | type system | performance | comparision  

GNU/EDMA Simple Object Creation
simple example of object creation  
  • Class object is specified through a string
  • Sample Code:

  • #include <edma.h>

    int main(int argc, char *argv[])
    {

      OBJID id;

      EDMAInit();
      if ((id = edma_new_obj (argv[1])) == -1)
      {

        edma_printf_err ("Can't create object of class '%s'", argv[1]);
        EDMAEnd();
        exit (1);
      }
      edma_free_obj (id);
      EDMAEnd();
    }

<< Previous   Next >>
 [Local Repositories] [SIU Subsystem]