File: PyProperty.h

package info (click to toggle)
metakit 2.4.3-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 6,468 kB
  • ctags: 3,548
  • sloc: xml: 29,455; cpp: 23,339; sh: 9,051; tcl: 1,195; python: 577; makefile: 254; ansic: 14
file content (30 lines) | stat: -rwxr-xr-x 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// PyProperty.h --
// $Id: PyProperty.h,v 1.4 2001/11/03 23:56:18 wcvs Exp $
// This is part of MetaKit, see http://www.equi4.com/metakit/
//
//  Copyright 1999 McMillan Enterprises, Inc. -- www.mcmillan-inc.com
//  Copyright (C) 1999-2001 Jean-Claude Wippler <jcw@equi4.com>
//
//  Property class header

#if !defined INCLUDE_PYPROPERTY_H
#define INCLUDE_PYPROPERTY_H

#include <mk4.h>
#include "PyHead.h"

#define PyProperty_Check(ob) ((ob)->ob_type == &PyPropertytype)

extern PyTypeObject PyPropertytype;

class PyProperty : public PyHead, public c4_Property {
public:
	//PyProperty();
	PyProperty(const c4_Property& o) : PyHead(PyPropertytype), c4_Property (o) { }
	PyProperty(char t, const char* n) : PyHead(PyPropertytype), c4_Property (t, n) { }
	~PyProperty () {}
};

PyObject* PyProperty_new(PyObject* o, PyObject* _args);

#endif