File: mydll.h

package info (click to toggle)
pygccxml 3.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 8,444 kB
  • sloc: xml: 29,841; python: 13,914; cpp: 2,671; makefile: 163; ansic: 59
file content (112 lines) | stat: -rw-r--r-- 2,947 bytes parent folder | download | duplicates (5)
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#pragma once

#include "libconfig.h"

#include <memory>
#include <string>
#include <vector>

class EXPORT_SYMBOL number_t{
public:
	number_t();
	explicit number_t(int value);
	virtual ~number_t();
	void print_it() const;
	int get_value() const;
	int get_value(){ return m_value; }
	void set_value(int x);

	number_t clone() const;
	std::auto_ptr<number_t> clone_ptr() const;
private:
	int m_value;
};

template class EXPORT_SYMBOL std::auto_ptr< number_t >;

typedef std::auto_ptr< number_t > number_aptr_t;

enum{ auto_ptr_size = sizeof( number_aptr_t ) };

EXPORT_SYMBOL void do_smth( number_aptr_t& );

EXPORT_SYMBOL extern int my_global_int;

typedef void(*do_smth_type)( number_aptr_t& );

EXPORT_SYMBOL extern volatile int my_volatile_global_variable;

EXPORT_SYMBOL extern int my_global_array[10];

EXPORT_SYMBOL void* get_pvoid(void*);
EXPORT_SYMBOL void** get_ppvoid(void);


class EXPORT_SYMBOL myclass_t{
public:
	myclass_t(int x){}
	myclass_t(void){}
	virtual ~myclass_t(){}
    static int my_static_member;
    static const int my_const_static_member;
    volatile int my_volatile_member;
    
    do_smth_type* get_do_smth(){ return 0; }
    void set_do_smth(do_smth_type*){};
	
	int Fi_i(int bar){ return 0; }
	static int Fis_i(int bar){ return 0; }

	myclass_t operator+(int x){ return myclass_t(); }
	myclass_t operator++(){ return myclass_t(); }
	myclass_t operator++(int){ return myclass_t(); }
	myclass_t& operator=(const myclass_t& from){ return *this;}
	
	struct nested{
		nested(){}
		~nested(){}
		int Fi_i(int bar){ return 0;}
	};

	typedef std::vector< std::wstring > wstring_collection_t;

	wstring_collection_t create_wstring_collection(){ return wstring_collection_t(); }
	void fill_wstring_collection( wstring_collection_t& ){};
	void print__wstring_collection( const wstring_collection_t& ){}


};

struct EXPORT_SYMBOL X{};

EXPORT_SYMBOL int FA10_i_i(int a[10]);
EXPORT_SYMBOL int FPi_i(int *a);
EXPORT_SYMBOL int Fc_i(char bar);
EXPORT_SYMBOL int Ff_i(float bar);
EXPORT_SYMBOL int Fg_i(double bar);
EXPORT_SYMBOL int Fi_i(int bar);
EXPORT_SYMBOL int Fie_i(int bar, ...);
EXPORT_SYMBOL int Fii_i(int bar, int goo);
EXPORT_SYMBOL int Fiii_i(int bar, int goo, int hoo);
EXPORT_SYMBOL void Fmxmx_v(myclass_t arg1, X arg2, myclass_t arg3, X arg4);
EXPORT_SYMBOL void Fmyclass_v(myclass_t m);
EXPORT_SYMBOL const int Fv_Ci(void);
EXPORT_SYMBOL long double Fv_Lg(void);
EXPORT_SYMBOL int& Fv_Ri(void);
EXPORT_SYMBOL signed char Fv_Sc(void);
EXPORT_SYMBOL unsigned char Fv_Uc(void);
EXPORT_SYMBOL unsigned int Fv_Ui(void);
EXPORT_SYMBOL unsigned long Fv_Ul(void);
EXPORT_SYMBOL unsigned short Fv_Us(void);
EXPORT_SYMBOL volatile int Fv_Vi(void);
EXPORT_SYMBOL char Fv_c(void);
EXPORT_SYMBOL float Fv_f(void);
EXPORT_SYMBOL double Fv_g(void);
EXPORT_SYMBOL int Fv_i(void);
EXPORT_SYMBOL long Fv_l(void);
EXPORT_SYMBOL short Fv_s(void);
EXPORT_SYMBOL void Fv_v(void);

extern "C"{
    int EXPORT_SYMBOL identity( int );
}