/home/dko/projects/mobilec/trunk/src/mxml-2.2.2/test/struct.cxx

Go to the documentation of this file.
00001 typedef struct foo_s                    /* Foo structure */
00002 {
00003   float foo;                            /* Real number */
00004   int   bar;                            /* Integer */
00005 
00006   foo_s(float f, int b);
00007   ~foo_s();
00008 
00009   // 'get_bar()' - Get the value of bar.
00010   int // O - Value of bar
00011   get_bar()
00012   {
00013     return (bar);
00014   }
00015 
00016   // 'get_foo()' - Get the value of foo.
00017   float // O - Value of foo
00018   get_foo()
00019   {
00020     return (foo);
00021   }
00022 
00023   // 'set_bar()' - Set the value of bar.
00024   void
00025   set_bar(int b) // I - Value of bar
00026   {
00027     bar = b;
00028   }
00029 
00030   // 'set_foo()' - Set the value of foo.
00031   void
00032   set_foo(float f) // I - Value of foo
00033   {
00034     foo = f;
00035   }
00036 } foo_t;
00037 
00038 // 'foo_s::foo_s()' - Create a foo_s structure.
00039 foo_s::foo_s(float f, int b)
00040 {
00041   foo = f;
00042   bar = b;
00043 }
00044 
00045 // 'foo_s::~foo_s()' - Destroy a foo_s structure.
00046 foo_s::~foo_s()
00047 {
00048 }

Generated on Fri May 16 14:49:55 2008 for Mobile-C by  doxygen 1.5.4