/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk
96 by Gustav Hartvigsson
* Added skeleton for cxx binding. This is not a priotity, and never will be.
1
#include "../libssts/baseobject.h"
2
3
/*
4
 * I have a distaste C++. So this is not a priority, and may not even
5
 * work at all.
6
 */
7
namespace SSTS {
8
  class SObject {
9
    struct SObject self;
10
    
11
    inline SObject () {
12
      this.self = s_object_new ();
13
    }
14
    
15
    inline ~SObject () {
16
      s_object_free (this.self);
17
    }
18
    
19
    inline void
20
    initialize (const schar * name) {
21
      s_object_initialize (this.self, name);
22
    }
23
    
24
    inline void
25
    initialize (const std::string name) {
26
      s_object_initialize (this.self, name.c_str);
27
    }
28
    
29
    inline void
30
    ref () {
31
      s_object_ref (this.self);
32
    }
33
    
34
    inline void
35
    unref () {
36
      s_object_unref (this.self);
37
    }
38
    
39
  }
40
  
41
}
42