pygccxml-commit Mailing List for C++ Python language bindings (Page 76)
Brought to you by:
mbaas,
roman_yakovenko
You can subscribe to this list here.
2006 |
Jan
|
Feb
|
Mar
(190) |
Apr
(166) |
May
(170) |
Jun
(75) |
Jul
(105) |
Aug
(131) |
Sep
(99) |
Oct
(84) |
Nov
(67) |
Dec
(54) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
(66) |
Feb
(49) |
Mar
(25) |
Apr
(62) |
May
(21) |
Jun
(34) |
Jul
(9) |
Aug
(21) |
Sep
(5) |
Oct
|
Nov
(63) |
Dec
(34) |
2008 |
Jan
(10) |
Feb
(42) |
Mar
(26) |
Apr
(25) |
May
(6) |
Jun
(40) |
Jul
(18) |
Aug
(29) |
Sep
(6) |
Oct
(32) |
Nov
(14) |
Dec
(56) |
2009 |
Jan
(127) |
Feb
(52) |
Mar
(2) |
Apr
(10) |
May
(29) |
Jun
(3) |
Jul
|
Aug
(16) |
Sep
(4) |
Oct
(11) |
Nov
(8) |
Dec
(14) |
2010 |
Jan
(31) |
Feb
(1) |
Mar
(7) |
Apr
(9) |
May
(1) |
Jun
|
Jul
(2) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2011 |
Jan
|
Feb
(8) |
Mar
(4) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Roman <rom...@us...> - 2006-04-20 04:07:15
|
Update of /cvsroot/pygccxml/source/pygccxml/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pygccxml/docs Modified Files: download.rest pygccxml.rest Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: pygccxml.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/docs/pygccxml.rest,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** pygccxml.rest 9 Apr 2006 05:16:31 -0000 1.7 --- pygccxml.rest 20 Apr 2006 04:06:41 -0000 1.8 *************** *** 25,34 **** * build a code generator ! + `pyplusplus`_ is havily based on `pygccxml`_ + generate `WSDL`_ file from sources + ... * create UML diagrams ! * build code analizer * ... --- 25,34 ---- * build a code generator ! + `pyplusplus`_ is heavily based on `pygccxml`_ + generate `WSDL`_ file from sources + ... * create UML diagrams ! * build code analyzer * ... Index: download.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/docs/download.rest,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** download.rest 6 Apr 2006 06:15:57 -0000 1.2 --- download.rest 20 Apr 2006 04:06:41 -0000 1.3 *************** *** 19,30 **** -------- ! Please use `this`__ link to download `pygccxml`_. ! __ https://sourceforge.net/project/showfiles.php?group_id=118209 ---------- CVS access ---------- ! Using `this`__ link you can get access to the latest source code. ! __ https://sourceforge.net/cvs/?group_id=118209 ------------ --- 19,29 ---- -------- ! https://sourceforge.net/project/showfiles.php?group_id=118209 ---------- CVS access ---------- ! ! https://sourceforge.net/cvs/?group_id=118209 ------------ *************** *** 37,41 **** | ``python setup.py install`` ! After this command complete you should have installed `pygccxml`_ package. ------------ --- 36,40 ---- | ``python setup.py install`` ! After this command complete, you should have installed `pygccxml`_ package. ------------ *************** *** 43,56 **** ------------ - * `Python`_ - * `GCC-XML`_ - * `Docutils`_ - only in case you want to create\\extend current documentation - .. _`pygccxml` : ./../pygccxml/pygccxml.html .. _`SourceForge`: http://sourceforge.net/index.php - .. _`Docutils`: http://docutils.sourceforge.net - .. _`Python`: http://www.python.org .. _`GCC-XML`: http://www.gccxml.org .. --- 42,49 ---- |
From: Roman <rom...@us...> - 2006-04-20 04:07:15
|
Update of /cvsroot/pygccxml/source/pyplusplus/docs/examples/easybmp In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus/docs/examples/easybmp Modified Files: easybmp.rest Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: easybmp.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/docs/examples/easybmp/easybmp.rest,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** easybmp.rest 16 Jan 2006 13:58:16 -0000 1.2 --- easybmp.rest 20 Apr 2006 04:06:42 -0000 1.3 *************** *** 34,38 **** 1. environment.py - contains different environment settings ! 2. create_easybmp.py - contains source code needed to generate `boost.python`_ bindings for `EasyBMP`_ library. --- 34,38 ---- 1. environment.py - contains different environment settings ! 2. generate_code.py - contains source code needed to generate `boost.python`_ bindings for `EasyBMP`_ library. *************** *** 62,80 **** .. :border: 0 ! ---------------------------------------- ! How to run example using built bindings? ! ---------------------------------------- ! ! 1. Download `Python`_ bindings for you platform. ! ! 2. Extract archive. ! ! 3. Run "python `grayscale.py`_ source.bmp target.bmp" ! ! -------------------------------------- ! Download `EasyBMP`_ `Python`_ bindings ! -------------------------------------- - You can download `EasyBMP`_ `Python`_ bindings from http://sourceforge.net/project/showfiles.php?group_id=118209. --- 62,69 ---- .. :border: 0 ! -------- ! Download ! -------- http://sourceforge.net/project/showfiles.php?group_id=118209. |
From: Roman <rom...@us...> - 2006-04-20 04:07:14
|
Update of /cvsroot/pygccxml/source/pygccxml/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pygccxml/parser Modified Files: project_reader.py scanner.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: scanner.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/parser/scanner.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** scanner.py 6 Apr 2006 06:15:58 -0000 1.23 --- scanner.py 20 Apr 2006 04:06:41 -0000 1.24 *************** *** 272,276 **** elif attrs.has_key( XML_AN_RESTRICT ): #TODO: find out what is restrict type ! #and I realy don't know what I should return return volatile_t( attrs[XML_AN_TYPE] ) else: --- 272,276 ---- elif attrs.has_key( XML_AN_RESTRICT ): #TODO: find out what is restrict type ! #and I really don't know what I should return return volatile_t( attrs[XML_AN_TYPE] ) else: Index: project_reader.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/parser/project_reader.py,v retrieving revision 1.29 retrieving revision 1.30 diff -C2 -d -r1.29 -r1.30 *** project_reader.py 6 Apr 2006 06:15:58 -0000 1.29 --- project_reader.py 20 Apr 2006 04:06:41 -0000 1.30 *************** *** 349,353 **** msg.append( "Why did it happen to me? Here is a short list of reasons: " ) msg.append( " 1. There are different preprocessor definitions applied on same file during compilation" ) ! msg.append( " 2. GCC implementation details. Diamand class hierarchy will reproduce this behaviour." ) msg.append( " If name starts with '__vmi_class_type_info_pseudo' you can ignore this message." ) msg.append( " 3. Bug in pygccxml." ) --- 349,353 ---- msg.append( "Why did it happen to me? Here is a short list of reasons: " ) msg.append( " 1. There are different preprocessor definitions applied on same file during compilation" ) ! msg.append( " 2. GCC implementation details. Diamand class hierarchy will reproduce this behavior." ) msg.append( " If name starts with '__vmi_class_type_info_pseudo' you can ignore this message." ) msg.append( " 3. Bug in pygccxml." ) |
From: Roman <rom...@us...> - 2006-04-20 04:07:14
|
Update of /cvsroot/pygccxml/source/pyplusplus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus Modified Files: __init__.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: __init__.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/__init__.py,v retrieving revision 1.27 retrieving revision 1.28 diff -C2 -d -r1.27 -r1.28 *** __init__.py 9 Apr 2006 06:55:14 -0000 1.27 --- __init__.py 20 Apr 2006 04:06:41 -0000 1.28 *************** *** 15,40 **** in the headers. You can then modify (decorate) this tree to customize the bindings. After that, a I{code creators} tree is created where ! each node represents a block of C++ source code. As a last step, these ! source code blocks are finally written into one or more C++ source ! files which can then be compiled to generate the final Python module. ! ! In general, the following steps have to be done: ! ! 1. B{Parsing the header files}: This is done by the pygccxml package. ! You either use the pygccxml.parser.parse() function or the ! pygccxml.parser.project_reader_t class. ! Note: Currently, you B{must} pass a L{dwfactory_t<decl_wrappers.dwfactory_t>} ! object to the parser so that the resulting declaration tree is composed ! of the decl_wrapper nodes in the L{decl_wrappers} sub-package instead ! of the declaration nodes from pygccxml. ! ! 2. B{Creating the code creators tree}: This is done by the ! L{creator_t<module_creator.creator_t>} class in the L{module_creator} ! sub-package. The code creators tree is composed of the nodes defined ! in the L{code_creators} sub-package. ! ! 3. B{Writing the source files}: This is done by the functions in the ! L{file_writers} sub-package. """ --- 15,25 ---- in the headers. You can then modify (decorate) this tree to customize the bindings. After that, a I{code creators} tree is created where ! each node represents a block of C++ source code. So you can change any piece of ! code befor it is written to disk. As a last step, these source code blocks are ! finally written into one or more C++ source files, which can then be compiled to ! generate the final Python module. + If you are just starting with U{pyplusplus<http://www.language-binding.net>}, + then consider to read documentation of L{module_builder} package. """ |
From: Roman <rom...@us...> - 2006-04-20 04:07:14
|
Update of /cvsroot/pygccxml/source/pyplusplus/_logging_ In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus/_logging_ Modified Files: __init__.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: __init__.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/_logging_/__init__.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** __init__.py 6 Apr 2006 06:16:11 -0000 1.1 --- __init__.py 20 Apr 2006 04:06:41 -0000 1.2 *************** *** 5,8 **** --- 5,13 ---- #TODO: find better place for it + """ + This package contains logging configuration for pyplusplus. Default log level + is DEBUG. Default log messages destination is sys.stdout. + """ + import sys import logging |
From: Roman <rom...@us...> - 2006-04-20 04:07:14
|
Update of /cvsroot/pygccxml/source/pygccxml/docs/history In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pygccxml/docs/history Modified Files: history.rest Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: history.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/docs/history/history.rest,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** history.rest 6 Apr 2006 06:15:57 -0000 1.7 --- history.rest 20 Apr 2006 04:06:41 -0000 1.8 *************** *** 77,81 **** 10. Few helper functions has been added in order to make construction of ! cofiguration file to be as easy as possible: * ``parser.create_text_fc`` - creates file configuration, that contains text --- 77,81 ---- 10. Few helper functions has been added in order to make construction of ! configuration file to be as easy as possible: * ``parser.create_text_fc`` - creates file configuration, that contains text *************** *** 113,117 **** 2. Class *declarations.variable_t* has new property - *bit_fields* ! 3. Now it is possible to specify "undefine" derectives using *parser.config_t* class. --- 113,117 ---- 2. Class *declarations.variable_t* has new property - *bit_fields* ! 3. Now it is possible to specify "undefined" directives using *parser.config_t* class. |
From: Roman <rom...@us...> - 2006-04-20 04:07:14
|
Update of /cvsroot/pygccxml/source/pygccxml/unittests/data In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pygccxml/unittests/data Modified Files: core_cache.hpp Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: core_cache.hpp =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/unittests/data/core_cache.hpp,v retrieving revision 1.53 retrieving revision 1.54 diff -C2 -d -r1.53 -r1.54 *** core_cache.hpp 9 Apr 2006 05:17:13 -0000 1.53 --- core_cache.hpp 20 Apr 2006 04:06:41 -0000 1.54 *************** *** 24,26 **** ! //touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch//touch \ No newline at end of file --- 24,26 ---- ! //touch \ No newline at end of file |
From: Roman <rom...@us...> - 2006-04-20 04:07:13
|
Update of /cvsroot/pygccxml/source/pygccxml/declarations In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pygccxml/declarations Modified Files: filters.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: filters.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/declarations/filters.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** filters.py 6 Apr 2006 06:39:54 -0000 1.9 --- filters.py 20 Apr 2006 04:06:40 -0000 1.10 *************** *** 128,132 **** #An other option is that pygccxml will create absolute path using #os.path.abspath function. But I think this is just wrong, because abspath ! #builds path using current working directory. This behaviour is fragile #and very difficult to find a bug. matcher_base_t.__init__( self ) --- 128,132 ---- #An other option is that pygccxml will create absolute path using #os.path.abspath function. But I think this is just wrong, because abspath ! #builds path using current working directory. This behavior is fragile #and very difficult to find a bug. matcher_base_t.__init__( self ) |
From: Roman <rom...@us...> - 2006-04-20 04:07:13
|
Update of /cvsroot/pygccxml/source/pydsc/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pydsc/docs Modified Files: pydsc.rest Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: pydsc.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pydsc/docs/pydsc.rest,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** pydsc.rest 6 Apr 2006 06:15:55 -0000 1.5 --- pydsc.rest 20 Apr 2006 04:06:40 -0000 1.6 *************** *** 43,48 **** ------------- ! Basic usage is realy simple, but sometimes there is a need to: ! * skip\\exclude some words from cheking * redefine error messages destination, for example to print to some file * exclude(include) files from(to) spell checking process by file location --- 43,48 ---- ------------- ! Basic usage is really simple, but sometimes there is a need to: ! * skip\\exclude some words from checking * redefine error messages destination, for example to print to some file * exclude(include) files from(to) spell checking process by file location |
From: Roman <rom...@us...> - 2006-04-20 04:06:48
|
Update of /cvsroot/pygccxml/source/pyplusplus/module_builder In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus/module_builder Modified Files: __init__.py builder.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: builder.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/module_builder/builder.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** builder.py 6 Apr 2006 06:16:08 -0000 1.8 --- builder.py 20 Apr 2006 04:06:44 -0000 1.9 *************** *** 16,19 **** --- 16,25 ---- class module_builder_t(object): + """ + This class provides users with simple and intuitive interface to pyplusplus + and/or pygccxml functionality. If this is your first attempt to use pyplusplus + consider to read tutorials. You can find them on U{web site<http://www.language-binding.net>}. + """ + def __init__( self , files *************** *** 28,31 **** --- 34,55 ---- , cache=None , optimize_queries=True): + """ + @param files: list of files, declarations from them you want to export + @type files: list of strings or L{file_configuration_t} instances + + @param gccxml_path: path to gccxml binary. If you don't pass this argument, + pygccxml parser will try to locate it using you environment PATH variable + @type gccxml_path: str + + @param include_paths: additional header files location. You don't have to + specify system and standard directories. + @type include_paths: list of strings + + @param define_symbols: list of symbols to be defined for preprocessor. + @param define_symbols: list of strings + + @param undefine_symbols: list of symbols to be undefined for preprocessor. + @param undefine_symbols: list of strings + """ object.__init__( self ) gccxml_config = parser.config_t( *************** *** 60,63 **** --- 84,92 ---- def run_query_optimizer(self): + """ + It is possible to optimze time that takes to execute queries. In most cases + this is done from __init__ method. But there are use-case, when you need + to disable optimizer at __init__ and run it later. + """ self.__global_ns.init_optimizer() *************** *** 108,111 **** --- 137,147 ---- def print_declarations(self, decl=None): + """ + This function will print detailed description of all declarations or + some specific one. + + @param decl: optional, if passed, then only it will be printed + @type decl: instance of L{decl_wrappers.decl_wrapper_t} class + """ if None is decl: decl = self.global_ns *************** *** 119,122 **** --- 155,172 ---- , types_db=None , target_configuration=None ): + """ + Creates L{module_t} code creator. + + @param module_name: module name + @type module_name: string + + @param boost_python_ns_name: boost::python namespace alias, by default + it is 'bp' + @type boost_python_ns_name: string + + @param call_policies_resolver_: callable, that will be invoked on every + calldef object. It should return call policies. + @type call_policies_resolver_: callable + """ creator = mcreator_package.creator_t( self.global_ns , module_name *************** *** 141,156 **** def has_code_creator( self ): return not ( None is self.__code_creator ) def write_module( self, file_name ): ! """ Writes module to single file""" file_writers.write_file( self.code_creator, file_name ) def split_module(self, dir_name): ! """Writes module to multiple files""" file_writers.write_multiple_files( self.code_creator, dir_name ) #select decl(s) interfaces def decl( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): return self.global_ns.decl( name=name , function=function --- 191,220 ---- def has_code_creator( self ): + """ + Function, that will return True if build_code_creator function has been + called and False otherwise + """ return not ( None is self.__code_creator ) def write_module( self, file_name ): ! """ ! Writes module to single file ! @param file_name: file name ! @type file_name: string ! """ file_writers.write_file( self.code_creator, file_name ) def split_module(self, dir_name): ! """ ! Writes module to multiple files ! ! @param dir_name: directory name ! @type dir_name: string ! """ file_writers.write_multiple_files( self.code_creator, dir_name ) #select decl(s) interfaces def decl( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.decl( name=name , function=function *************** *** 160,163 **** --- 224,228 ---- def decls( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.decls( name=name , function=function *************** *** 167,170 **** --- 232,236 ---- def class_( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.class_( name=name , function=function *************** *** 174,177 **** --- 240,244 ---- def classes( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.classes( name=name , function=function *************** *** 181,184 **** --- 248,252 ---- def variable( self, name=None, function=None, type=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.variable( name=name , function=function *************** *** 189,192 **** --- 257,261 ---- def variables( self, name=None, function=None, type=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.variables( name=name , function=function *************** *** 197,200 **** --- 266,270 ---- def calldef( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.calldef( name=name , function=function *************** *** 206,209 **** --- 276,280 ---- def calldefs( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.calldefs( name=name , function=function *************** *** 215,218 **** --- 286,290 ---- def operator( self, name=None, symbol=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.operator( name=name , symbol=symbol *************** *** 226,229 **** --- 298,302 ---- def operators( self, name=None, symbol=None, return_type=None, arg_types=None, decl_type=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.operators( name=name , symbol=symbol *************** *** 237,240 **** --- 310,314 ---- def member_function( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.member_function( name=name , function=function *************** *** 246,249 **** --- 320,324 ---- def member_functions( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.member_functions( name=name , function=function *************** *** 255,258 **** --- 330,334 ---- def constructor( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.constructor( name=name , function=function *************** *** 264,267 **** --- 340,344 ---- def constructors( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.constructors( name=name , function=function *************** *** 273,276 **** --- 350,354 ---- def member_operator( self, name=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.member_operator( name=name , symbol=symbol *************** *** 283,286 **** --- 361,365 ---- def member_operators( self, name=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.member_operators( name=name , symbol=symbol *************** *** 293,296 **** --- 372,376 ---- def casting_operator( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.casting_operator( name=name , function=function *************** *** 302,305 **** --- 382,386 ---- def casting_operators( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.casting_operators( name=name , function=function *************** *** 311,314 **** --- 392,396 ---- def enumeration( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.enumeration( name=name , function=function *************** *** 319,322 **** --- 401,405 ---- def enumerations( self, name=None, function=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.scopedef_t} class documentation""" return self.global_ns.enumerations( name=name , function=function *************** *** 328,331 **** --- 411,415 ---- def namespace( self, name=None, function=None, recursive=None ): + """Please see L{decl_wrappers.namespace_t} class documentation""" return self.global_ns.namespace( name=name , function=function *************** *** 333,336 **** --- 417,421 ---- def namespaces( self, name=None, function=None, recursive=None ): + """Please see L{decl_wrappers.namespace_t} class documentation""" return self.global_ns.namespaces( name=name , function=function *************** *** 338,341 **** --- 423,427 ---- def free_function( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.namespace_t} class documentation""" return self.global_ns.free_function( name=name , function=function *************** *** 347,350 **** --- 433,437 ---- def free_functions( self, name=None, function=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.namespace_t} class documentation""" return self.global_ns.free_functions( name=name , function=function *************** *** 356,359 **** --- 443,447 ---- def free_operator( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.namespace_t} class documentation""" return self.global_ns.free_operator( name=name , symbol=symbol *************** *** 366,369 **** --- 454,458 ---- def free_operators( self, name=None, function=None, symbol=None, return_type=None, arg_types=None, header_dir=None, header_file=None, recursive=None ): + """Please see L{decl_wrappers.namespace_t} class documentation""" return self.global_ns.free_operators( name=name , symbol=symbol Index: __init__.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/module_builder/__init__.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** __init__.py 29 Mar 2006 04:26:58 -0000 1.2 --- __init__.py 20 Apr 2006 04:06:44 -0000 1.3 *************** *** 4,7 **** --- 4,16 ---- # http://www.boost.org/LICENSE_1_0.txt) + """ + This package provides users with simple and convinient interface to pyplusplus + functionality. + + L{module_builder_t} class is the main class. Please read it's documentation first. + Also take a look on tutorials. You can find them on pyplusplus + U{web site<http://www.language-binding.net>} + """ + from builder import module_builder_t |
From: Roman <rom...@us...> - 2006-04-20 04:06:48
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/include In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus/examples/py_date_time/include Modified Files: date_time.pypp.xml Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: date_time.pypp.xml =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/py_date_time/include/date_time.pypp.xml,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** date_time.pypp.xml 6 Apr 2006 06:16:06 -0000 1.9 --- date_time.pypp.xml 20 Apr 2006 04:06:42 -0000 1.10 *************** *** 3,8 **** <Namespace id="_1" name="::" members="_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 _70 _71 _72 _73 _74 _75 _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 _113 _114 _115 _116 _117 _118 _119 _120 _121 _122 _123 _124 _125 _126 _127 _128 _129 _130 _131 _132 _133 _134 _135 _136 _137 _138 _139 _140 _141 _142 _143 _144 _145 _146 _147 _148 _149 _150 _151 _152 _153 _154 _155 _156 _157 _158 _159 _160 _161 _162 _163 _164 _165 _166 _167 _168 _169 _170 _171 _172 _173 _174 _175 _176 _177 _178 _179 _180 _181 _182 _183 _184 _185 _186 _187 _188 _189 _190 _191 _192 _193 _194 _195 _196 _197 _198 _199 _200 _201 _202 _203 _204 _205 _206 _207 _208 _209 _210 _211 _212 _213 _214 _215 _216 _217 _218 _219 _220 _221 _222 _223 _224 _225 _226 _227 _228 _229 _230 _231 _232 _233 _234 _235 _236 _237 _238 _239 _240 _241 _242 _243 _244 _245 _246 _247 _248 _249 _250 _251 _252 _253 _254 _255 _256 _257 _258 _259 _260 _261 _262 _263 _264 _265 _266 _267 _268 _269 _270 _271 _272 _273 _274 _275 _276 _277 _278 _279 _280 _281 _282 _283 _284 _285 _286 _287 _288 _289 _290 _291 _292 _293 _294 _295 _296 _297 _298 _299 _300 _301 _302 _303 _304 _305 _306 _307 _308 _309 _310 _311 _312 _313 _314 _315 _316 _317 _318 _319 _320 _321 _322 _323 _324 _325 _326 _327 _328 _329 _330 _331 _332 _333 _334 _335 _336 _337 _338 _339 _340 _341 _342 _343 _344 _345 _346 _347 _348 _349 _350 _351 _352 _353 _354 _355 _356 _357 _358 _359 _360 _361 _362 _363 _364 _365 _366 _367 _368 _369 _370 _371 _372 _373 _374 _375 _376 _377 _378 _379 _380 _381 _382 _383 _384 _385 _386 _387 _388 _389 _390 _391 _392 _393 _394 _395 _396 _397 _398 _399 _400 _401 _402 _403 _404 _405 _406 _407 _408 _409 _410 _411 _412 _413 _414 _415 _416 _417 _418 _419 _420 _421 _422 _423 _424 _425 _426 _427 _428 _429 _430 _431 _432 _433 _434 _435 _436 _437 _438 _439 _440 _441 _442 _443 _444 _445 _446 _447 _448 _449 _450 _451 _452 _453 _454 _455 _456 _457 _458 _459 _460 _461 _462 _463 _464 _465 _466 _467 _468 _469 _470 _471 _472 _473 _474 _475 _476 _477 _478 _479 _480 _481 _482 _483 _484 _485 _486 _487 _488 _489 _490 _491 _492 _493 _494 _495 _496 _497 _498 _499 _500 _501 _502 _503 _504 _505 _506 _507 _508 _509 _510 _511 _512 _513 _514 _515 _516 _517 _518 _519 _520 _521 _522 _523 _524 _525 _526 _527 _528 _529 _530 _531 _532 _533 _534 _535 _536 _537 _538 _539 _540 _541 _542 _543 _544 _545 _546 _547 _548 _549 _550 _551 _552 _553 _554 _555 _556 _557 _558 _559 _560 _561 _562 _563 _564 _565 _566 _567 _568 _569 _571 _572 _573 _574 _575 _576 _577 _578 _579 _580 _581 _582 _583 _584 _585 _586 _587 _588 _589 _590 _591 _592 _593 _594 _595 _596 _597 _598 _599 _600 _601 _602 _603 _604 _605 _606 _607 _608 _609 _610 _611 _612 _613 _614 _615 _616 _617 _618 _619 _620 _621 _622 _623 _625 _626 _627 _628 _629 _630 _631 _632 _633 _634 _635 _636 _637 _638 _639 _640 _642 _643 _644 _645 _646 _647 _648 _649 _650 _651 _652 _653 _654 _655 _656 _657 _658 _659 _660 _661 _662 _663 _664 _665 _666 _667 _668 _669 _670 _671 _672 _673 _674 _675 _676 _677 _678 _679 _680 _681 _682 _683 _684 _685 _686 _687 _688 _689 _690 _691 _692 _693 _694 _695 _696 _697 _698 _699 _700 _701 _702 _703 _704 _705 _706 _707 _708 _709 _710 _711 _712 _713 _714 _715 _716 _717 _718 _719 _720 _721 _722 _723 _724 _725 _726 _727 _728 _729 _730 _731 _732 _733 _734 _735 _736 _737 _738 _739 _740 _741 _742 _743 _744 _745 _746 _747 _748 _749 _750 _751 _752 _753 _754 _755 _756 _757 _758 _759 _760 _761 _762 _763 _764 _765 _766 _767 _768 _769 _770 _771 _772 _773 _774 _775 _776 _777 _778 _779 _780 _781 _782 _783 _784 _785 _786 _787 _788 _789 _790 _791 _792 _793 _794 _795 _796 _797 _798 _799 _800 _801 _802 _803 _804 _805 _806 _808 _809 _810 _811 _812 _813 _814 _815 _816 _817 _818 _820 _821 _823 _824 _825 _826 _827 _828 _829 _830 _831 _832 _833 _834 _835 _836 _837 _838 _839 _840 _841 _842 _843 _844 _845 _846 _847 _848 _849 _850 _851 _852 _853 _854 _855 _856 _857 _858 _859 _860 _861 _862 _863 _864 _865 _866 _867 _868 _869 _870 _871 _872 _873 _874 _875 _876 _877 _878 _879 _880 _881 _882 _883 _884 _885 _886 _887 _888 _889 _890 _891 _892 _893 _894 _895 _896 _897 _898 _899 _900 _901 _902 _903 _904 _905 _906 _907 _908 _909 _910 _911 _912 _913 _914 _915 _916 _917 _918 _919 _920 _921 _922 _923 _924 _925 _926 _927 _928 _929 _930 _931 _932 _933 _934 _935 _936 _937 _938 _939 _940 _941 _942 _943 _944 _945 _946 _947 _948 _949 _950 _951 _952 _953 _954 _955 _956 _957 _958 _959 _960 _961 _962 _963 _964 _965 _966 _967 _968 _969 _970 _971 _972 _973 _974 _975 _976 _977 _978 _979 _980 _981 _982 _983 _984 _985 _986 _987 _988 _989 _990 _991 _992 _993 _994 _995 _996 _997 _998 _999 _1000 _1001 _1002 _1003 _1004 _1005 _1006 _1007 _1008 _1009 _1010 _1011 _1012 _1013 _1014 _1015 _1016 _1017 _1018 _1019 _1020 _1021 _1022 _1023 _1024 _1025 _1026 _1027 _1028 _1029 _1030 _1031 _1032 _1033 _1034 _1035 _1036 _1037 _1038 _1039 _1040 _1041 _1042 _1043 _1044 _1045 _1046 _1047 _1048 _1049 _1050 _1051 _1052 _1053 _1054 _1055 _1056 _1057 _1058 _1059 _1060 _1061 _1062 _1063 _1064 _1065 _1066 _1067 _1068 _1069 _1070 _1071 _1072 _1073 _1074 _1075 _1076 _1077 _1078 _1079 _1080 _1082 _1084 _1086 _1087 _1088 _1089 _1090 _1091 _1092 _1093 _1094 _1095 _1096 _1097 _1098 _1099 _1100 _1101 _1102 _1103 _1104 _1105 _1106 _1107 _1108 _1109 _1110 _1111 _1112 _1113 _1114 _1115 _1116 _1118 _1117 _1120 _1122 _1124 _1126 _1127 _1128 _1129 _1130 _1131 _1132 _1133 _1134 _1135 _1136 _1137 _1138 _1140 _1141 _1142 _1143 _1145 _1146 _1148 _1149 _1151 _1152 _1154 _1156 _1158 _1160 _1162 _1164 _1166 _1168 _1170 _1171 _1172 _1173 _1174 _1175 _1176 _1081 _1083 _807 _1177 _1179 _1180 _1178 _1181 _1182 _1183 _1184 _1185 _1186 _1187 _1188 _1189 _1190 _1191 _1192 _1193 _1194 _1195 _1196 _1197 _1198 _1199 _1200 _1201 _1202 _1203 _1204 _1205 _1206 _1207 _1208 _1209 _1210 _1211 _1212 _1213 _1214 _1215 _1216 _1217 _1218 _1219 _1220 _1221 _1222 _1223 _1224 _1225 _1226 _1227 _1228 _1229 _1230 _1231 _1232 _1233 _1235 _1236 _1237 _1238 _1239 _1240 _1241 _1242 _1243 _1244 _1245 _1246 _1247 _1249 _1250 _1251 _1252 _1253 _1255 _1257 _1258 _1259 _1260 _1261 _1263 _1264 _1265 _1266 _1268 _1269 _1270 _1271 _1272 _1273 _1274 _1275 _1276 _1277 _1278 _1279 _1280 _1281 _1282 _1283 _1284 _1285 _1286 _1287 _1288 _1289 _1290 _1291 _1292 _1293 _1294 _1295 _1296 _1297 _1298 _1299 _1300 _1301 _1302 _1303 _1304 _1305 _1306 _1307 _1308 _1309 _1310 _1311 _1312 _1313 _1314 _1315 _1316 _1317 _1318 _1319 _1320 _1321 _1322 _1323 _1324 _1325 _1326 _1327 _1328 _1329 _1330 _1331 _1332 _1333 _1334 _1335 _1336 _1337 _1338 _1339 _1340 _1341 _1342 _1343 _1344 _1345 _1346 _1347 _1348 _1349 _1350 _1351 _1352 _1353 _1354 _1355 _1356 _1357 _1358 _1359 _1360 _1361 _1362 _1363 _1364 _1365 _1366 _1367 _1368 _1369 _1370 _1371 _1372 _1373 _1374 _1375 _1376 _1377 _1378 _1379 _1380 _1381 _1382 _1383 _1384 _1385 _1386 _1387 _1388 _1389 _1390 _1391 _1392 _1393 _1394 _1395 _1396 _1397 _1398 _1399 _1400 _1401 _1402 _1403 _1404 _1405 _1406 _1407 _1408 _1409 _1410 _1411 _1412 _1413 _1414 _1415 _1416 _1417 _1418 _1419 _1420 _1421 _1422 _1423 _1424 _1425 _1426 _1427 _1428 _1429 _1430 _1431 _1432 _1433 _1434 _1435 _1436 _1438 _1439 _1440 _1441 _1442 _1443 _1444 _1445 _1446 _1447 _1448 _1449 _1450 _1451 _1452 _1453 _1454 _1455 _1456 _1457 _1458 _1459 _1460 _1461 _1462 _1463 _1464 _1465 _1466 _1467 _1468 _1469 _1470 _1471 _1472 _1473 _1474 _1475 _1476 _1477 _1478 _1479 _1480 _1481 _1482 _1483 _1484 _1485 _1486 _1487 _1488 _1489 _1490 _1491 _1492 _1493 _1494 _1495 _1496 _1497 _1499 _1498 _1500 _1501 _819 _1502 _1503 _1504 _1505 _1507 _1506 _1509 _1510 _1511 _1512 _1513 _1514 _1515 _1516 _1517 _1518 _1520 _1521 _1522 _1523 _1524 _1525 _1526 _1527 _1528 _1530 _1529 _1531 _1532 _1533 _1534 _1535 _1536 _1537 _1538 _1539 _1540 _1541 _1542 _1543 _1544 _1545 _1546 _1547 _1548 _1549 _1550 _1551 _1552 _1553 _1554 _1555 _1556 _1557 _1558 _1559 _1560 _1561 _1562 _1563 _1564 _1565 _1567 _1568 _1569 _1570 _1571 _1572 _1573 _1574 _1575 _1576 _1578 _1579 _1580 _1581 _1582 _1583 _1584 _1585 _1586 _1587 _1588 _1589 _1590 _1591 _1592 _1593 _1594 _1595 _1596 _1597 _1598 _1599 _1566 _1600 _1601 _1602 _1603 _1604 _1605 _1606 _1607 _1608 _1609 _1610 _1611 _1612 _1613 _1614 _1615 _1616 _1617 _1618 _1619 _1620 _1621 _1622 _1623 _1624 _1625 _1626 _1627 _1628 _1629 _1630 _1631 _1632 _1633 _1634 _1635 _1636 _1637 _1638 _1639 _1640 _1641 _1642 _1643 _1644 _1645 _1646 _1647 _1648 _1649 _1650 _1651 _1652 _1653 _1654 _1655 _1656 _1657 _1658 _1659 _1660 _1661 _1662 _1663 _1664 _1665 _1666 _1667 _1668 _1669 _1670 _1671 _1672 _1673 _1674 _1675 _1676 _1677 _1678 _1679 _1680 _1681 _1682 _1683 _1684 _1685 _1686 _1687 _1688 _1689 _1690 _1691 _1692 _1693 _1694 _1695 _1696 _1697 _1698 _1699 _1700 _1701 _1702 _1703 _1704 _1705 _1706 _1707 _1708 _1709 _1710 _1711 _1712 _1713 _1714 _1715 _1716 _1717 _1718 _1719 _1720 _1721 _1722 _1723 _1724 _1725 _1726 _1727 _1728 _1729 _1730 _1731 _1732 _1733 _1734 _1735 _1736 _1737 _1738 _1739 _1740 _1741 _1742 _1743 _1744 _1745 _1746 _1747 " mangled="_Z2::"/> <Namespace id="_2" name="std" context="_1" members="_1752 _1753 _1758 _1759 _1770 _1771 _1776 _1777 _1782 _1783 _1785 _1786 _1787 _1788 _1789 _1790 _1791 _1792 _1793 _1794 _1800 _1801 _1802 _1803 _1804 _1805 _1806 _1807 _1808 _1809 _1810 _1811 _1812 _1813 _1814 _1817 _1818 _1819 _1820 _1821 _1822 _1823 _1824 _1825 _1826 _1827 _1828 _1839 _1840 _1841 _1842 _1843 _1844 _1845 _1846 _1847 _1848 _1849 _1850 _1851 _1852 _1853 _1854 _1855 _1856 _1857 _1858 _1862 _1863 _1864 _1865 _1866 _1867 _1868 _1869 _1870 _1871 _1872 _1873 _1874 _1875 _1876 _1877 _1878 _1879 _1880 _1881 _1882 _1883 _1884 _1885 _1886 _1887 _1888 _1889 _1890 _1891 _1892 _1893 _1894 _1895 _1896 _1920 _1930 _1931 _1932 _1933 _1934 _1935 _1936 _1937 _1938 _1939 _1940 _1941 _1942 _1943 _1944 _1945 _1946 _1947 _1948 _1949 _1950 _1951 _1952 _1953 _1954 _1955 _1956 _1957 _1958 _1959 _1960 _1961 _1962 _1963 _1964 _1965 _1966 _1967 _1968 _1969 _1970 _1971 _1972 _1973 _1974 _1975 _1976 _1977 _1978 _1979 _2001 _2002 _2037 _2039 _2041 _2040 _2042 _2043 _2044 _2045 _2046 _2047 _2052 _2053 _2054 _2154 _2156 _2157 _2158 _2215 _2216 _2217 _2218 _2219 _2220 _2222 _2223 _2224 _2225 _2226 _2227 _2228 _2229 _2230 _2231 _2232 _2233 _2234 _2235 _2236 _2238 _2240 _2242 _2244 _2246 _2248 _2250 _2252 _2254 _2256 _2258 _2260 _2262 _2264 _2266 _2268 _2270 _2272 _2274 _2276 _2278 _2280 _2282 _2284 _2286 _2288 _2289 _2290 _2291 _2292 _2293 _2294 _2295 _2296 _2297 _2298 _2299 _2300 _2301 _2302 _2303 _2305 _2306 _2307 _2308 _2309 _2310 _2311 _2312 _2313 _2314 _2315 _2316 _2317 _2318 _2320 _2322 _2323 _2356 _2357 _2358 _2359 _2360 _2361 _2362 _2363 _2364 _2365 " mangled="_Z3std"/> ! <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppdoechd" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> ! <Function id="_4" name="_GLOBAL__I__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppdoechd" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> <Variable id="_5" name="_ZGVN5boost9date_time10date_facetINS_9gregorian4dateEcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE" type="_1256" context="_1" location="f1:372" file="f1" line="372" artificial="1"/> <Function id="_6" name="__static_initialization_and_destruction_0" returns="_1139" context="_1" mangled="_Z41__static_initialization_and_destruction_0ii" location="f0:131" file="f0" line="131" endline="77"> --- 3,8 ---- <Namespace id="_1" name="::" members="_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 _70 _71 _72 _73 _74 _75 _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 _113 _114 _115 _116 _117 _118 _119 _120 _121 _122 _123 _124 _125 _126 _127 _128 _129 _130 _131 _132 _133 _134 _135 _136 _137 _138 _139 _140 _141 _142 _143 _144 _145 _146 _147 _148 _149 _150 _151 _152 _153 _154 _155 _156 _157 _158 _159 _160 _161 _162 _163 _164 _165 _166 _167 _168 _169 _170 _171 _172 _173 _174 _175 _176 _177 _178 _179 _180 _181 _182 _183 _184 _185 _186 _187 _188 _189 _190 _191 _192 _193 _194 _195 _196 _197 _198 _199 _200 _201 _202 _203 _204 _205 _206 _207 _208 _209 _210 _211 _212 _213 _214 _215 _216 _217 _218 _219 _220 _221 _222 _223 _224 _225 _226 _227 _228 _229 _230 _231 _232 _233 _234 _235 _236 _237 _238 _239 _240 _241 _242 _243 _244 _245 _246 _247 _248 _249 _250 _251 _252 _253 _254 _255 _256 _257 _258 _259 _260 _261 _262 _263 _264 _265 _266 _267 _268 _269 _270 _271 _272 _273 _274 _275 _276 _277 _278 _279 _280 _281 _282 _283 _284 _285 _286 _287 _288 _289 _290 _291 _292 _293 _294 _295 _296 _297 _298 _299 _300 _301 _302 _303 _304 _305 _306 _307 _308 _309 _310 _311 _312 _313 _314 _315 _316 _317 _318 _319 _320 _321 _322 _323 _324 _325 _326 _327 _328 _329 _330 _331 _332 _333 _334 _335 _336 _337 _338 _339 _340 _341 _342 _343 _344 _345 _346 _347 _348 _349 _350 _351 _352 _353 _354 _355 _356 _357 _358 _359 _360 _361 _362 _363 _364 _365 _366 _367 _368 _369 _370 _371 _372 _373 _374 _375 _376 _377 _378 _379 _380 _381 _382 _383 _384 _385 _386 _387 _388 _389 _390 _391 _392 _393 _394 _395 _396 _397 _398 _399 _400 _401 _402 _403 _404 _405 _406 _407 _408 _409 _410 _411 _412 _413 _414 _415 _416 _417 _418 _419 _420 _421 _422 _423 _424 _425 _426 _427 _428 _429 _430 _431 _432 _433 _434 _435 _436 _437 _438 _439 _440 _441 _442 _443 _444 _445 _446 _447 _448 _449 _450 _451 _452 _453 _454 _455 _456 _457 _458 _459 _460 _461 _462 _463 _464 _465 _466 _467 _468 _469 _470 _471 _472 _473 _474 _475 _476 _477 _478 _479 _480 _481 _482 _483 _484 _485 _486 _487 _488 _489 _490 _491 _492 _493 _494 _495 _496 _497 _498 _499 _500 _501 _502 _503 _504 _505 _506 _507 _508 _509 _510 _511 _512 _513 _514 _515 _516 _517 _518 _519 _520 _521 _522 _523 _524 _525 _526 _527 _528 _529 _530 _531 _532 _533 _534 _535 _536 _537 _538 _539 _540 _541 _542 _543 _544 _545 _546 _547 _548 _549 _550 _551 _552 _553 _554 _555 _556 _557 _558 _559 _560 _561 _562 _563 _564 _565 _566 _567 _568 _569 _571 _572 _573 _574 _575 _576 _577 _578 _579 _580 _581 _582 _583 _584 _585 _586 _587 _588 _589 _590 _591 _592 _593 _594 _595 _596 _597 _598 _599 _600 _601 _602 _603 _604 _605 _606 _607 _608 _609 _610 _611 _612 _613 _614 _615 _616 _617 _618 _619 _620 _621 _622 _623 _625 _626 _627 _628 _629 _630 _631 _632 _633 _634 _635 _636 _637 _638 _639 _640 _642 _643 _644 _645 _646 _647 _648 _649 _650 _651 _652 _653 _654 _655 _656 _657 _658 _659 _660 _661 _662 _663 _664 _665 _666 _667 _668 _669 _670 _671 _672 _673 _674 _675 _676 _677 _678 _679 _680 _681 _682 _683 _684 _685 _686 _687 _688 _689 _690 _691 _692 _693 _694 _695 _696 _697 _698 _699 _700 _701 _702 _703 _704 _705 _706 _707 _708 _709 _710 _711 _712 _713 _714 _715 _716 _717 _718 _719 _720 _721 _722 _723 _724 _725 _726 _727 _728 _729 _730 _731 _732 _733 _734 _735 _736 _737 _738 _739 _740 _741 _742 _743 _744 _745 _746 _747 _748 _749 _750 _751 _752 _753 _754 _755 _756 _757 _758 _759 _760 _761 _762 _763 _764 _765 _766 _767 _768 _769 _770 _771 _772 _773 _774 _775 _776 _777 _778 _779 _780 _781 _782 _783 _784 _785 _786 _787 _788 _789 _790 _791 _792 _793 _794 _795 _796 _797 _798 _799 _800 _801 _802 _803 _804 _805 _806 _808 _809 _810 _811 _812 _813 _814 _815 _816 _817 _818 _820 _821 _823 _824 _825 _826 _827 _828 _829 _830 _831 _832 _833 _834 _835 _836 _837 _838 _839 _840 _841 _842 _843 _844 _845 _846 _847 _848 _849 _850 _851 _852 _853 _854 _855 _856 _857 _858 _859 _860 _861 _862 _863 _864 _865 _866 _867 _868 _869 _870 _871 _872 _873 _874 _875 _876 _877 _878 _879 _880 _881 _882 _883 _884 _885 _886 _887 _888 _889 _890 _891 _892 _893 _894 _895 _896 _897 _898 _899 _900 _901 _902 _903 _904 _905 _906 _907 _908 _909 _910 _911 _912 _913 _914 _915 _916 _917 _918 _919 _920 _921 _922 _923 _924 _925 _926 _927 _928 _929 _930 _931 _932 _933 _934 _935 _936 _937 _938 _939 _940 _941 _942 _943 _944 _945 _946 _947 _948 _949 _950 _951 _952 _953 _954 _955 _956 _957 _958 _959 _960 _961 _962 _963 _964 _965 _966 _967 _968 _969 _970 _971 _972 _973 _974 _975 _976 _977 _978 _979 _980 _981 _982 _983 _984 _985 _986 _987 _988 _989 _990 _991 _992 _993 _994 _995 _996 _997 _998 _999 _1000 _1001 _1002 _1003 _1004 _1005 _1006 _1007 _1008 _1009 _1010 _1011 _1012 _1013 _1014 _1015 _1016 _1017 _1018 _1019 _1020 _1021 _1022 _1023 _1024 _1025 _1026 _1027 _1028 _1029 _1030 _1031 _1032 _1033 _1034 _1035 _1036 _1037 _1038 _1039 _1040 _1041 _1042 _1043 _1044 _1045 _1046 _1047 _1048 _1049 _1050 _1051 _1052 _1053 _1054 _1055 _1056 _1057 _1058 _1059 _1060 _1061 _1062 _1063 _1064 _1065 _1066 _1067 _1068 _1069 _1070 _1071 _1072 _1073 _1074 _1075 _1076 _1077 _1078 _1079 _1080 _1082 _1084 _1086 _1087 _1088 _1089 _1090 _1091 _1092 _1093 _1094 _1095 _1096 _1097 _1098 _1099 _1100 _1101 _1102 _1103 _1104 _1105 _1106 _1107 _1108 _1109 _1110 _1111 _1112 _1113 _1114 _1115 _1116 _1118 _1117 _1120 _1122 _1124 _1126 _1127 _1128 _1129 _1130 _1131 _1132 _1133 _1134 _1135 _1136 _1137 _1138 _1140 _1141 _1142 _1143 _1145 _1146 _1148 _1149 _1151 _1152 _1154 _1156 _1158 _1160 _1162 _1164 _1166 _1168 _1170 _1171 _1172 _1173 _1174 _1175 _1176 _1081 _1083 _807 _1177 _1179 _1180 _1178 _1181 _1182 _1183 _1184 _1185 _1186 _1187 _1188 _1189 _1190 _1191 _1192 _1193 _1194 _1195 _1196 _1197 _1198 _1199 _1200 _1201 _1202 _1203 _1204 _1205 _1206 _1207 _1208 _1209 _1210 _1211 _1212 _1213 _1214 _1215 _1216 _1217 _1218 _1219 _1220 _1221 _1222 _1223 _1224 _1225 _1226 _1227 _1228 _1229 _1230 _1231 _1232 _1233 _1235 _1236 _1237 _1238 _1239 _1240 _1241 _1242 _1243 _1244 _1245 _1246 _1247 _1249 _1250 _1251 _1252 _1253 _1255 _1257 _1258 _1259 _1260 _1261 _1263 _1264 _1265 _1266 _1268 _1269 _1270 _1271 _1272 _1273 _1274 _1275 _1276 _1277 _1278 _1279 _1280 _1281 _1282 _1283 _1284 _1285 _1286 _1287 _1288 _1289 _1290 _1291 _1292 _1293 _1294 _1295 _1296 _1297 _1298 _1299 _1300 _1301 _1302 _1303 _1304 _1305 _1306 _1307 _1308 _1309 _1310 _1311 _1312 _1313 _1314 _1315 _1316 _1317 _1318 _1319 _1320 _1321 _1322 _1323 _1324 _1325 _1326 _1327 _1328 _1329 _1330 _1331 _1332 _1333 _1334 _1335 _1336 _1337 _1338 _1339 _1340 _1341 _1342 _1343 _1344 _1345 _1346 _1347 _1348 _1349 _1350 _1351 _1352 _1353 _1354 _1355 _1356 _1357 _1358 _1359 _1360 _1361 _1362 _1363 _1364 _1365 _1366 _1367 _1368 _1369 _1370 _1371 _1372 _1373 _1374 _1375 _1376 _1377 _1378 _1379 _1380 _1381 _1382 _1383 _1384 _1385 _1386 _1387 _1388 _1389 _1390 _1391 _1392 _1393 _1394 _1395 _1396 _1397 _1398 _1399 _1400 _1401 _1402 _1403 _1404 _1405 _1406 _1407 _1408 _1409 _1410 _1411 _1412 _1413 _1414 _1415 _1416 _1417 _1418 _1419 _1420 _1421 _1422 _1423 _1424 _1425 _1426 _1427 _1428 _1429 _1430 _1431 _1432 _1433 _1434 _1435 _1436 _1438 _1439 _1440 _1441 _1442 _1443 _1444 _1445 _1446 _1447 _1448 _1449 _1450 _1451 _1452 _1453 _1454 _1455 _1456 _1457 _1458 _1459 _1460 _1461 _1462 _1463 _1464 _1465 _1466 _1467 _1468 _1469 _1470 _1471 _1472 _1473 _1474 _1475 _1476 _1477 _1478 _1479 _1480 _1481 _1482 _1483 _1484 _1485 _1486 _1487 _1488 _1489 _1490 _1491 _1492 _1493 _1494 _1495 _1496 _1497 _1499 _1498 _1500 _1501 _819 _1502 _1503 _1504 _1505 _1507 _1506 _1509 _1510 _1511 _1512 _1513 _1514 _1515 _1516 _1517 _1518 _1520 _1521 _1522 _1523 _1524 _1525 _1526 _1527 _1528 _1530 _1529 _1531 _1532 _1533 _1534 _1535 _1536 _1537 _1538 _1539 _1540 _1541 _1542 _1543 _1544 _1545 _1546 _1547 _1548 _1549 _1550 _1551 _1552 _1553 _1554 _1555 _1556 _1557 _1558 _1559 _1560 _1561 _1562 _1563 _1564 _1565 _1567 _1568 _1569 _1570 _1571 _1572 _1573 _1574 _1575 _1576 _1578 _1579 _1580 _1581 _1582 _1583 _1584 _1585 _1586 _1587 _1588 _1589 _1590 _1591 _1592 _1593 _1594 _1595 _1596 _1597 _1598 _1599 _1566 _1600 _1601 _1602 _1603 _1604 _1605 _1606 _1607 _1608 _1609 _1610 _1611 _1612 _1613 _1614 _1615 _1616 _1617 _1618 _1619 _1620 _1621 _1622 _1623 _1624 _1625 _1626 _1627 _1628 _1629 _1630 _1631 _1632 _1633 _1634 _1635 _1636 _1637 _1638 _1639 _1640 _1641 _1642 _1643 _1644 _1645 _1646 _1647 _1648 _1649 _1650 _1651 _1652 _1653 _1654 _1655 _1656 _1657 _1658 _1659 _1660 _1661 _1662 _1663 _1664 _1665 _1666 _1667 _1668 _1669 _1670 _1671 _1672 _1673 _1674 _1675 _1676 _1677 _1678 _1679 _1680 _1681 _1682 _1683 _1684 _1685 _1686 _1687 _1688 _1689 _1690 _1691 _1692 _1693 _1694 _1695 _1696 _1697 _1698 _1699 _1700 _1701 _1702 _1703 _1704 _1705 _1706 _1707 _1708 _1709 _1710 _1711 _1712 _1713 _1714 _1715 _1716 _1717 _1718 _1719 _1720 _1721 _1722 _1723 _1724 _1725 _1726 _1727 _1728 _1729 _1730 _1731 _1732 _1733 _1734 _1735 _1736 _1737 _1738 _1739 _1740 _1741 _1742 _1743 _1744 _1745 _1746 _1747 " mangled="_Z2::"/> <Namespace id="_2" name="std" context="_1" members="_1752 _1753 _1758 _1759 _1770 _1771 _1776 _1777 _1782 _1783 _1785 _1786 _1787 _1788 _1789 _1790 _1791 _1792 _1793 _1794 _1800 _1801 _1802 _1803 _1804 _1805 _1806 _1807 _1808 _1809 _1810 _1811 _1812 _1813 _1814 _1817 _1818 _1819 _1820 _1821 _1822 _1823 _1824 _1825 _1826 _1827 _1828 _1839 _1840 _1841 _1842 _1843 _1844 _1845 _1846 _1847 _1848 _1849 _1850 _1851 _1852 _1853 _1854 _1855 _1856 _1857 _1858 _1862 _1863 _1864 _1865 _1866 _1867 _1868 _1869 _1870 _1871 _1872 _1873 _1874 _1875 _1876 _1877 _1878 _1879 _1880 _1881 _1882 _1883 _1884 _1885 _1886 _1887 _1888 _1889 _1890 _1891 _1892 _1893 _1894 _1895 _1896 _1920 _1930 _1931 _1932 _1933 _1934 _1935 _1936 _1937 _1938 _1939 _1940 _1941 _1942 _1943 _1944 _1945 _1946 _1947 _1948 _1949 _1950 _1951 _1952 _1953 _1954 _1955 _1956 _1957 _1958 _1959 _1960 _1961 _1962 _1963 _1964 _1965 _1966 _1967 _1968 _1969 _1970 _1971 _1972 _1973 _1974 _1975 _1976 _1977 _1978 _1979 _2001 _2002 _2037 _2039 _2041 _2040 _2042 _2043 _2044 _2045 _2046 _2047 _2052 _2053 _2054 _2154 _2156 _2157 _2158 _2215 _2216 _2217 _2218 _2219 _2220 _2222 _2223 _2224 _2225 _2226 _2227 _2228 _2229 _2230 _2231 _2232 _2233 _2234 _2235 _2236 _2238 _2240 _2242 _2244 _2246 _2248 _2250 _2252 _2254 _2256 _2258 _2260 _2262 _2264 _2266 _2268 _2270 _2272 _2274 _2276 _2278 _2280 _2282 _2284 _2286 _2288 _2289 _2290 _2291 _2292 _2293 _2294 _2295 _2296 _2297 _2298 _2299 _2300 _2301 _2302 _2303 _2305 _2306 _2307 _2308 _2309 _2310 _2311 _2312 _2313 _2314 _2315 _2316 _2317 _2318 _2320 _2322 _2323 _2356 _2357 _2358 _2359 _2360 _2361 _2362 _2363 _2364 _2365 " mangled="_Z3std"/> ! <Function id="_3" name="_GLOBAL__D__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppgiaCua" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> ! <Function id="_4" name="_GLOBAL__I__home_roman_pygccxml_sources_source_pyplusplus_examples_py_date_time_include_date_time.pypp.hppgiaCua" returns="_1139" context="_1" location="f0:131" file="f0" line="131" endline="131"/> <Variable id="_5" name="_ZGVN5boost9date_time10date_facetINS_9gregorian4dateEcSt19ostreambuf_iteratorIcSt11char_traitsIcEEE2idE" type="_1256" context="_1" location="f1:372" file="f1" line="372" artificial="1"/> <Function id="_6" name="__static_initialization_and_destruction_0" returns="_1139" context="_1" mangled="_Z41__static_initialization_and_destruction_0ii" location="f0:131" file="f0" line="131" endline="77"> |
From: Roman <rom...@us...> - 2006-04-20 04:06:47
|
Update of /cvsroot/pygccxml/source/pyplusplus/file_writers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus/file_writers Modified Files: __init__.py multiple_files.py single_file.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: multiple_files.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/file_writers/multiple_files.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** multiple_files.py 9 Apr 2006 15:12:21 -0000 1.17 --- multiple_files.py 20 Apr 2006 04:06:43 -0000 1.18 *************** *** 12,16 **** class multiple_files_t(writer.writer_t): """ ! This class will implement classic strategy of deviding classes to files one class in one header + source files. """ --- 12,16 ---- class multiple_files_t(writer.writer_t): """ ! This class implements classic strategy of deviding classes to files one class in one header + source files. """ Index: __init__.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/file_writers/__init__.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** __init__.py 6 Dec 2005 05:50:21 -0000 1.5 --- __init__.py 20 Apr 2006 04:06:43 -0000 1.6 *************** *** 4,7 **** --- 4,19 ---- # http://www.boost.org/LICENSE_1_0.txt) + """ + This package contains few classes, that writes L{code_creators.module_t} to files. + + Right now 2 strategies were implemented: + + 1. classic strategy of deviding classes to files one class in one header + source + files. + + 2. all code is written in one file. + + """ + import types from writer import writer_t Index: single_file.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/file_writers/single_file.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** single_file.py 14 Dec 2005 09:09:52 -0000 1.8 --- single_file.py 20 Apr 2006 04:06:43 -0000 1.9 *************** *** 8,11 **** --- 8,15 ---- class single_file_t(writer.writer_t): + """ + This class writes all code into single file. + """ + def __init__(self, extmodule, file_name): writer.writer_t.__init__(self, extmodule) |
From: Roman <rom...@us...> - 2006-04-20 04:06:47
|
Update of /cvsroot/pygccxml/source/pyplusplus/gui In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/pyplusplus/gui Modified Files: __init__.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: __init__.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/gui/__init__.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** __init__.py 14 Aug 2005 05:21:43 -0000 1.1 --- __init__.py 20 Apr 2006 04:06:43 -0000 1.2 *************** *** 1,6 **** ! # Copyright 2004 Roman Yakovenko. ! # Distributed under the Boost Software License, Version 1.0. (See ! # accompanying file LICENSE_1_0.txt or copy at ! # http://www.boost.org/LICENSE_1_0.txt) ! from ui import show_demo \ No newline at end of file --- 1,12 ---- ! # Copyright 2004 Roman Yakovenko. ! # Distributed under the Boost Software License, Version 1.0. (See ! # accompanying file LICENSE_1_0.txt or copy at ! # http://www.boost.org/LICENSE_1_0.txt) ! ! """ ! This package provide simple GUI interface. If you have installed pyplusplus and ! pygccxml you can invoke GUI from shell using pyplusplus_gui command on Linux. ! On Windows you can run pyplusplus_gui.pyw file. ! """ ! from ui import show_demo \ No newline at end of file |
From: Roman <rom...@us...> - 2006-04-20 04:06:46
|
Update of /cvsroot/pygccxml/source/release_manager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv6005/release_manager Modified Files: release_builder.py Log Message: I was ill and did not have my TortoiseCVS :-). This commit contains documentation changes only. Those changes had been done for latest release version. Index: release_builder.py =================================================================== RCS file: /cvsroot/pygccxml/source/release_manager/release_builder.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** release_builder.py 11 Apr 2006 07:34:27 -0000 1.3 --- release_builder.py 20 Apr 2006 04:06:44 -0000 1.4 *************** *** 99,110 **** self.log( 'generating documentation' ) ! options = [ '--output "%(output)s"' ! , '--docformat epytext' ! , '--url http://www.language-binding.net' ! , '--name %(name)s' , ' %(packages)s' ] cmd_line = "epydoc " + ' '.join( options ) cmd = cmd_line % { ! 'output' : os.path.join( self.packages['pygccxml'], 'docs', 'auto_docs' ) , 'name' : 'pygccxml' , 'packages' : os.path.join( self.packages['pygccxml'], 'pygccxml' ) } --- 99,112 ---- self.log( 'generating documentation' ) ! options = [ '--output="%(output)s"' ! , '--docformat=epytext' ! , '--url=http://www.language-binding.net' ! #, '--graph=all' ! , '--name=%(name)s' ! , '--verbose' , ' %(packages)s' ] cmd_line = "epydoc " + ' '.join( options ) cmd = cmd_line % { ! 'output' : os.path.join( self.packages['pygccxml'], 'docs', 'apidocs' ) , 'name' : 'pygccxml' , 'packages' : os.path.join( self.packages['pygccxml'], 'pygccxml' ) } *************** *** 113,117 **** cmd = cmd_line % { ! 'output' : os.path.join( self.packages['pyplusplus'], 'docs', 'auto_docs' ) , 'name' : 'pyplusplus' , 'packages' : ' '.join( [ os.path.join( self.packages['pyplusplus'], 'pyplusplus' ) --- 115,119 ---- cmd = cmd_line % { ! 'output' : os.path.join( self.packages['pyplusplus'], 'docs', 'apidocs' ) , 'name' : 'pyplusplus' , 'packages' : ' '.join( [ os.path.join( self.packages['pyplusplus'], 'pyplusplus' ) |
Update of /cvsroot/pygccxml/source/pyplusplus/docs/tutorials In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20656/pyplusplus/docs/tutorials Modified Files: module_builder.rest tutorials.rest Added Files: module_builder_generate_code.html module_builder_hello_world.html module_builder_hello_world_result.html Log Message: Documentation improvments --- NEW FILE: module_builder_hello_world.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hello_world.hpp</title> <meta name="GENERATOR" content="SciTE - www.Scintilla.org" /> <style type="text/css"> .S0 { color: #808080; background: #FFFFFF; } .S2 { font-family: 'Courier New'; color: #007F00; background: #FFFFFF; font-size: 9pt; } .S3 { font-family: 'Courier New'; color: #3F703F; background: #FFFFFF; font-size: 9pt; } .S4 { color: #007F7F; background: #FFFFFF; } .S5 { font-weight: bold; color: #00007F; background: #FFFFFF; } .S6 { color: #7F007F; background: #FFFFFF; } .S9 { color: #7F7F00; background: #FFFFFF; } .S10 { font-weight: bold; color: #000000; background: #FFFFFF; } span { font-family: 'Courier New'; color: #000000; background: #FFFFFF; font-size: 10pt; } </style> </head> <body bgcolor="#FFFFFF"> <span><span class="S2">// Copyright 2004 Roman Yakovenko.</span><br /> <span class="S2">// Distributed under the Boost Software License, Version 1.0. (See</span><br /> <span class="S2">// accompanying file LICENSE_1_0.txt or copy at</span><br /> <span class="S2">// http://www.boost.org/LICENSE_1_0.txt)</span><br /> <br /> <span class="S9">#ifndef __hello_world_hpp__</span><br /> <span class="S9">#define __hello_world_hpp__</span><br /> <br /> <span class="S9">#include <string></span><br /> <br /> <span class="S2">//I want to rename color to Color</span><br /> <span class="S5">enum</span><span class="S0"> </span>color<span class="S10">{</span><span class="S0"> </span>red<span class="S10">,</span><span class="S0"> </span>green<span class="S10">,</span><span class="S0"> </span>blue<span class="S0"> </span><span class="S10">};</span><br /> <br /> <span class="S5">struct</span><span class="S0"> </span>animal<span class="S10">{</span><br /> <span class="S0"> </span><br /> <span class="S0"> </span>animal<span class="S10">(</span><span class="S0"> </span><span class="S5">const</span><span class="S0"> </span>std<span class="S10">::</span>string<span class="S10">&</span><span class="S0"> </span>name<span class="S10">=</span><span class="S6">""</span><span class="S0"> </span><span class="S10">)</span><br /> <span class="S0"> </span><span class="S10">:</span><span class="S0"> </span>m_name<span class="S10">(</span><span class="S0"> </span>name<span class="S0"> </span><span class="S10">)</span><br /> <span class="S0"> </span><span class="S10">{}</span><br /> <span class="S0"> </span><br /> <span class="S0"> </span><span class="S2">//I need to set call policies to the function</span><br /> <span class="S0"> </span><span class="S5">const</span><span class="S0"> </span>std<span class="S10">::</span>string<span class="S10">*</span><span class="S0"> </span>get_name_ptr<span class="S10">()</span><span class="S0"> </span><span class="S5">const</span><br /> <span class="S0"> </span><span class="S10">{</span><span class="S0"> </span><span class="S5">return</span><span class="S0"> </span><span class="S10">&</span>m_name<span class="S10">;</span><span class="S0"> </span><span class="S10">}</span><br /> <br /> <span class="S0"> </span><span class="S5">const</span><span class="S0"> </span>std<span class="S10">::</span>string<span class="S10">&</span><span class="S0"> </span>name<span class="S10">()</span><span class="S0"> </span><span class="S5">const</span><br /> <span class="S0"> </span><span class="S10">{</span><span class="S0"> </span><span class="S5">return</span><span class="S0"> </span>m_name<span class="S10">;</span><span class="S0"> </span><span class="S10">}</span><br /> <span class="S0"> </span><br /> <span class="S5">private</span><span class="S10">:</span><span class="S0"> </span><br /> <span class="S0"> </span>std<span class="S10">::</span>string<span class="S0"> </span>m_name<span class="S10">;</span><br /> <br /> <span class="S10">};</span><br /> <br /> <span class="S2">//I want to exclude next declarations:</span><br /> <span class="S5">struct</span><span class="S0"> </span>impl1<span class="S10">{};</span><br /> <span class="S5">struct</span><span class="S0"> </span>impl2<span class="S10">{};</span><br /> <br /> <span class="S5">inline</span><span class="S0"> </span><span class="S5">int</span><span class="S10">*</span><span class="S0"> </span>get_int_ptr<span class="S10">(){</span><span class="S0"> </span><span class="S5">return</span><span class="S0"> </span><span class="S4">0</span><span class="S10">;}</span><span class="S0"> </span><br /> <span class="S5">inline</span><span class="S0"> </span><span class="S5">int</span><span class="S10">*</span><span class="S0"> </span>get_int_ptr<span class="S10">(</span><span class="S5">int</span><span class="S10">){</span><span class="S0"> </span><span class="S5">return</span><span class="S0"> </span><span class="S4">0</span><span class="S10">;}</span><br /> <span class="S5">inline</span><span class="S0"> </span><span class="S5">int</span><span class="S10">*</span><span class="S0"> </span>get_int_ptr<span class="S10">(</span><span class="S5">double</span><span class="S10">){</span><span class="S0"> </span><span class="S5">return</span><span class="S0"> </span><span class="S4">0</span><span class="S10">;}</span><br /> <span class="S0"> </span><br /> <span class="S9">#endif</span><span class="S2">//__hello_world_hpp__</span><br /> <br /> <span class="S0"></span></span> </body> </html> Index: module_builder.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/docs/tutorials/module_builder.rest,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** module_builder.rest 9 Apr 2006 05:17:15 -0000 1.2 --- module_builder.rest 12 Apr 2006 07:40:34 -0000 1.3 *************** *** 16,24 **** I guess you decided to try to use `pyplusplus`_ API. Good! So lets start. ! First of all take a look on two files: * `hello_world.hpp`_ - C++ source code, that we want to export to Python * `generate_code.py`_ - Python code, that uses `pyplusplus`_ to export declarations from the source file ! .. _`hello_world.hpp` : ./module_builder_hello_world.html .. _`generate_code.py` : ./module_builder_generate_code.html --- 16,26 ---- I guess you decided to try to use `pyplusplus`_ API. Good! So lets start. ! First of all please take a look on two files: ! * `hello_world.hpp`_ - C++ source code, that we want to export to Python + * `generate_code.py`_ - Python code, that uses `pyplusplus`_ to export declarations from the source file ! .. _`hello_world.hpp` : ./module_builder_hello_world.html .. _`generate_code.py` : ./module_builder_generate_code.html *************** *** 29,178 **** `pyplusplus`_ is built from a few packages, but there is only one package you ! should realy to be familiar with - ``module_builder``. The main purpose of this ! package is to provide simple and user friendly interface to `pyplusplus`_ ! internals. The main class within this package is ``module_builder_t``. The ! instance of this class will guide you through the whole process. Next few ! paragraphs will tell you more about this class. ------------------------- module_builder_t.__init__ ------------------------- - ``module_builder_t.__init__`` methods takes few arguments: - - 1. files - list of all C++ source files, that declarations from them you want - to export. - - - - - - - ! ----------------------------- ! Step 1: Read C++ declarations ! ----------------------------- ! During this step C++ source files are parsed and all declarations are read. ! `pyplusplus`_ is not involved in this step at all. You should use `pygccxml`_. ! Fortunately it is very easy to setup\\use `pygccxml`_: ! :: ! import os ! from pygccxml import parser ! from pygccxml import declarations ! from pyplusplus import code_creators ! from pyplusplus import module_creator ! from pyplusplus import file_writers ! class settings: ! gccxml_path = '/home/roman/gccxml/bin' ! working_dir = '/tmp' ! ! #configurating parser ! parser_config = parser.config_t( gccxml_path=settings.gccxml_path, working_directory=settings.working_dir ) ! ! #reading all declarations ! decls_all = parser.parse( ['hello_world.hpp'], parser_config ) ! ! #filtering declarations ! decls = declarations.filtering.by_location( decls_all, [settings.working_dir] ) ! `pygccxml`_ does not parse C++ files, but use `GCC-XML`_ to do the job. So, the ! first thing that you should do is to setup `GCC-XML`_ binary location. The only ! way to do it is to create ``parser.config_t`` class instance. ! ``parser.config_t.__init__`` method takes few arguments: ! * `GCC-XML`_ binary location ! * working directory, this will help `GCC-XML`_ to locate included files ! * list of additional include directories ! * list of defined\\undefined symbols ! * ..., please see documentation of `pygccxml`_ for more information ! Now, when we created configuration for parser, we can actually read all ! declarations from source files. Function ``parse`` of module ``parser`` will do ! it. It will read all declarations that are found in your file and files included ! from the file. This means, that variable ``decls_all`` contains some declarations, ! that we do not want to export. So there is a need to apply some filter. In my ! example I remove all declarations that have been defined in files, outside of ! our working directory. We finished this step. The result of this step is that ! we have a set of declarations that we want to export. ! --------------------------------- ! Step 2: Create code creators tree ! --------------------------------- ! During this step `pyplusplus`_ will create one or more code creator for every ! C++ declaration, that should be exported. At the end of this step ``module_t`` ! class instances is created. Lets see some code: :: ! #creating code creators tree ! extmodule = module_creator.create( decls=decls, module_name="hello_world",recursive=False ) ! ! What is going on? First of all this is a first time we actualy use `pyplusplus`_. ! `pyplusplus`_ contains a package, named ``module_creator`` that contains ! functionality that create code creator(s) for every declaration. In this case ! I want to export all declarations from ``decls`` list. I also set exported ! module name to "hello_world". The 3rd parameter needs more explanation. ! ``decls`` argument could be interpreted as ! ! * list of all declaration to be exported ! * list of top level declarations. all declarations should be exported ! recursively. ! In order to clarify the use of ``decls`` argument, argument ``recursive`` is used. ! In my case ``decls`` variable holds a list of all declarations that should be ! exported, so I set ``recursive`` to be ``False``. ! Actually, we finished this step. ! ------------------------------- ! Step 3: Customize code creators ! ------------------------------- ! This step is optional. Inspite of being "optional" this step allows you to change ! code before it has been generated. You can create and add custom code creatpors. ! Or you can modify an exising one. Or even more you can delete code creators. ! There are few function that will help you to locate desired code creator by ! different criterias. In my case I only want to set user defined directories. ! Thus allowing `pyplusplus`_ to generate nice( shorter ) include directives: ! :: ! extmodule.user_defined_directories.append( parser_config.working_directory ) ! That's all for this step. ! --------------------------- ! Step 4: Write code to files ! --------------------------- ! :: ! file_writers.write_file( extmodule, 'bindings.cpp' ) ! ! I think that code above is self explained. I write ``extmodule`` into ! ``bindings.cpp`` file. It is also possible to write ``extmodule`` into multiple ! files: ! :: ! file_writers.write_multiple_files( extmodule, '.' ) ! The code above split extension module source to few files. This is very useful ! option. It saves compilation time. - -------------- - Congratulation - -------------- - Congratulation! You've done. You can find the whole listing of the program within - CVS/pyplusplus/examples/tutorials. ! Enjoy. ! .. _`pyplusplus` : ./pyplusplus.html ! .. _`pygccxml` : ./../pygccxml/pygccxml.html .. _`boost.python`: http://www.boost.org/libs/python/doc/index.html .. _`SourceForge`: http://sourceforge.net/index.php --- 31,157 ---- `pyplusplus`_ is built from a few packages, but there is only one package you ! should realy to be familiar with - ``module_builder``. This module is some kind ! of facade to low level API. It provides simple and intuitive API. The main ! class within this package is ``module_builder_t``. The instance of this class will ! guide you through the whole process. Next few paragraphs will tell you more about ! this class. ------------------------- module_builder_t.__init__ ------------------------- + First of all, what is needed in order to creates an instance of the class? + ``module_builder_t.__init__`` methods takes few arguments: + 1. ``files`` - list of all C++ source files, that declarations from them you want + to export. This is the only required parameter. + + 2. ``gccxml_path`` - path to `GCC-XML`_ binary. If you don't supply this argument + `pygccxml`_ will look for it using your environment variable ``PATH``. + + There some other arguments: + * additional include directories + * [un]defined symbols ( macros ) + * declarations cache + * ... + Parsing of source files is done within this method. Post condition of this + method is - all declarations has been successfully extracted from the sources + files using the settings you provided. + -------------------------- + Declarations customization + -------------------------- + Not all declarations should be exported! Not every declaration could be exported + without human invocation! As you already saw from example, `pyplusplus`_ provides + simple and powerful declarations query interface. By default only declarations, + that belongs to files you have asked to parse and to files, that lies in the same + directories as parsed files, will be exported: + :: + project_root/ + details/ + impl_a.h + impl_b.h + include/ + a.h //includes impl_a.h + b.h //includes impl_b.h + all.h //includes a.h and b.h + mb = module_builder( [ 'all.h' ] ) + + All declarations that belongs to ``include`` directory will be signed as included + to exposing. All other declarations will be ignored. ! You can change this final set of exported declarations by calling ``exclude`` or ! ``include`` methods on declarations. ! Basically this is a second step of code generation process. During this step ! you could/should/may change `pyplusplus`_ defaults: ! * to rename exposed declarations ! * to include/exclude declarations ! * to set call policies ! * ... ! I think it is critical for beginers to see what is going on, right? ! ``module_builder_t`` class has ``print_declarations``_ method. You can print whole ! declarations tree or some specific declaration. Very convinient, very useful. ! ----------------------------------- ! module_builder_t build_code_creator ! ----------------------------------- ! Now it is a time to create module code creator. Do you remember, in inroduction ! to `pyplusplus`_, I told you that before writing code to disc, `pyplusplus`_ will ! create some kind of `AST`_. Well this is done by calling ! ``module_builder_t.build_code_creator`` function. Right now, the only important ! argument to the function is ``module_name``. Self explained, is it? ! What is the main value of code creators? Code creators allow you to modify ! code before it has been written to disk. For example one common requirement for ! open source projects it to have license text within every source file. You can ! do it with one line of code only: :: ! mb.code_creator.license = your license text ! After you call this function, I recommend you not to change declarations ! configuration. In most cases the change will take effect, in some cases it will ! not! ! This tutorials is not cover code creators and how you should work with them. ! I will write an other tutorial. ! .. _`AST`: http://en.wikipedia.org/wiki/Abstract_syntax_tree ! ----------------------------- ! module_builder_t.write_module ! ----------------------------- ! You have almost created your module. The last things left is to write module ! code to file(s). You can do it with ! * ``module_builder_t.write_module`` - you should provide file name, the code ! will be written in. ! * ``module_builder_t.split_module`` - you should provide directory name. ! For big projects it is a must to minimize compilation time. So `pyplusplus`_ ! splits your module source code to different files within the directory. ! ! ------ ! Result ! ------ ! `View generated file`_ ! .. _`View generated file` : ./module_builder_hello_world_result.html ! That's all. I hope you enjoyed. ! .. _`pyplusplus` : ./../pyplusplus.html ! .. _`pygccxml` : ./../../pygccxml/pygccxml.html .. _`boost.python`: http://www.boost.org/libs/python/doc/index.html .. _`SourceForge`: http://sourceforge.net/index.php Index: tutorials.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/docs/tutorials/tutorials.rest,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** tutorials.rest 9 Apr 2006 05:17:15 -0000 1.1 --- tutorials.rest 12 Apr 2006 07:40:34 -0000 1.2 *************** *** 49,54 **** methods as a property. ! .. _`pyplusplus` : ./pyplusplus.html ! .. _`pygccxml` : ./../pygccxml/pygccxml.html .. _`boost.python`: http://www.boost.org/libs/python/doc/index.html .. _`SourceForge`: http://sourceforge.net/index.php --- 49,54 ---- methods as a property. ! .. _`pyplusplus` : ./../pyplusplus.html ! .. _`pygccxml` : ./../../pygccxml/pygccxml.html .. _`boost.python`: http://www.boost.org/libs/python/doc/index.html .. _`SourceForge`: http://sourceforge.net/index.php --- NEW FILE: module_builder_generate_code.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>generate_code.py</title> <meta name="GENERATOR" content="SciTE - www.Scintilla.org" /> <style type="text/css"> .S0 { color: #808080; background: #FFFFFF; } .S1 { font-family: 'Courier New'; color: #007F00; background: #FFFFFF; font-size: 9pt; } .S4 { font-family: 'Courier New'; color: #7F007F; background: #FFFFFF; font-size: 10pt; } .S5 { font-weight: bold; color: #00007F; background: #FFFFFF; } .S10 { font-weight: bold; color: #000000; background: #FFFFFF; } .S12 { color: #7F7F7F; background: #FFFFFF; } span { font-family: 'Courier New'; color: #000000; background: #FFFFFF; font-size: 10pt; } </style> </head> <body bgcolor="#FFFFFF"> <span><span class="S1">#! /usr/bin/python</span><br /> <span class="S1"># Copyright 2004 Roman Yakovenko.</span><br /> <span class="S1"># Distributed under the Boost Software License, Version 1.0. (See</span><br /> <span class="S1"># accompanying file LICENSE_1_0.txt or copy at</span><br /> <span class="S1"># http://www.boost.org/LICENSE_1_0.txt)</span><br /> <br /> <span class="S5">import</span><span class="S0"> </span>os<br /> <span class="S5">from</span><span class="S0"> </span>environment<span class="S0"> </span><span class="S5">import</span><span class="S0"> </span>settings<br /> <span class="S5">from</span><span class="S0"> </span>pyplusplus<span class="S0"> </span><span class="S5">import</span><span class="S0"> </span>module_builder<br /> <br /> mb<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>module_builder<span class="S10">.</span>module_builder_t<span class="S10">(</span><br /> <span class="S0"> </span>files<span class="S10">=[</span><span class="S4">'hello_world.hpp'</span><span class="S10">]</span><br /> <span class="S0"> </span><span class="S10">,</span><span class="S0"> </span>gccxml_path<span class="S10">=</span>settings<span class="S10">.</span>gccxml_path<span class="S0"> </span><span class="S1">#path to gccxml executable</span><br /> <span class="S0"> </span><span class="S10">,</span><span class="S0"> </span>working_directory<span class="S10">=</span>settings<span class="S10">.</span>working_dir<span class="S0"> </span><span class="S10">)</span><span class="S0"> </span><span class="S1">#setting working directory for gccxml</span><br /> <br /> <span class="S1">#rename enum Color to color</span><br /> Color<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>mb<span class="S10">.</span>enum<span class="S10">(</span><span class="S0"> </span><span class="S4">'color'</span><span class="S0"> </span><span class="S10">)</span><br /> Color<span class="S10">.</span>rename<span class="S10">(</span><span class="S4">'Color'</span><span class="S10">)</span><br /> <br /> <span class="S1">#Set call policies to animal::get_name_ptr</span><br /> animal<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>mb<span class="S10">.</span>class_<span class="S10">(</span><span class="S0"> </span><span class="S4">'animal'</span><span class="S0"> </span><span class="S10">)</span><br /> get_name_ptr<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>animal<span class="S10">.</span>member_function<span class="S10">(</span><span class="S0"> </span><span class="S4">'get_name_ptr'</span><span class="S10">,</span><span class="S0"> </span>recursive<span class="S10">=</span>False<span class="S0"> </span><span class="S10">)</span><br /> get_name_ptr<span class="S10">.</span>call_policies<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>module_builder<span class="S10">.</span>call_policies<span class="S10">.</span>return_internal_reference<span class="S10">()</span><br /> <br /> <span class="S1">#next code has same effect</span><br /> get_name_ptr<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>mb<span class="S10">.</span>member_function<span class="S10">(</span><span class="S0"> </span><span class="S4">'get_name_ptr'</span><span class="S0"> </span><span class="S10">)</span><br /> get_name_ptr<span class="S10">.</span>call_policies<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>module_builder<span class="S10">.</span>call_policies<span class="S10">.</span>return_internal_reference<span class="S10">()</span><br /> <br /> <span class="S1">#I want to exclude all classes with name starts with impl</span><br /> impl_classes<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>mb<span class="S10">.</span>classes<span class="S10">(</span><span class="S0"> </span><span class="S5">lambda</span><span class="S0"> </span>decl<span class="S10">:</span><span class="S0"> </span>decl<span class="S10">.</span>name<span class="S10">.</span>startswith<span class="S10">(</span><span class="S0"> </span><span class="S4">'impl'</span><span class="S0"> </span><span class="S10">)</span><span class="S0"> </span><span class="S10">)</span><br /> impl_classes<span class="S10">.</span>exclude<span class="S10">()</span><br /> <br /> <span class="S1">#I want to exclude all functions that returns pointer to int</span><br /> ptr_to_int<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>mb<span class="S10">.</span>free_functions<span class="S10">(</span><span class="S0"> </span>return_type<span class="S10">=</span><span class="S4">'int *'</span><span class="S0"> </span><span class="S10">)</span><br /> ptr_to_int<span class="S10">.</span>exclude<span class="S10">()</span><br /> <br /> <span class="S1">#I can print declarations to see what is going on</span><br /> mb<span class="S10">.</span>print_declarations<span class="S10">()</span><br /> <br /> <span class="S1">#I can print single declaration</span><br /> mb<span class="S10">.</span>print_declarations<span class="S10">(</span><span class="S0"> </span>animal<span class="S0"> </span><span class="S10">)</span><br /> <br /> <span class="S1">#Now it is the time to give a name to our module</span><br /> mb<span class="S10">.</span>build_code_creator<span class="S10">(</span><span class="S0"> </span>module_name<span class="S10">=</span><span class="S4">'hw'</span><span class="S0"> </span><span class="S10">)</span><br /> <br /> <span class="S1">#It is common requirement in software world - each file should have license</span><br /> mb<span class="S10">.</span>code_creator<span class="S10">.</span>license<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span><span class="S4">'//Boost Software License( http://boost.org/more/license_info.html )'</span><br /> <br /> <span class="S1">#I don't want absolute includes within code</span><br /> mb<span class="S10">.</span>code_creator<span class="S10">.</span>user_defined_directories<span class="S10">.</span>append<span class="S10">(</span><span class="S0"> </span>settings<span class="S10">.</span>working_dir<span class="S0"> </span><span class="S10">)</span><br /> <br /> <span class="S1">#And finally we can write code to the disk</span><br /> mb<span class="S10">.</span>write_module<span class="S10">(</span><span class="S0"> </span>os<span class="S10">.</span>path<span class="S10">.</span>join<span class="S10">(</span><span class="S0"> </span>settings<span class="S10">.</span>working_dir<span class="S10">,</span><span class="S0"> </span><span class="S4">'hello_world.py.cpp'</span><span class="S0"> </span><span class="S10">)</span><span class="S0"> </span><span class="S10">)</span></span> </body> </html> --- NEW FILE: module_builder_hello_world_result.html --- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>hello_world.py.cpp</title> <meta name="GENERATOR" content="SciTE - www.Scintilla.org" /> <style type="text/css"> .S0 { color: #808080; background: #FFFFFF; } .S2 { font-family: 'Courier New'; color: #007F00; background: #FFFFFF; font-size: 9pt; } .S4 { color: #007F7F; background: #FFFFFF; } .S5 { font-weight: bold; color: #00007F; background: #FFFFFF; } .S6 { color: #7F007F; background: #FFFFFF; } .S9 { color: #7F7F00; background: #FFFFFF; } .S10 { font-weight: bold; color: #000000; background: #FFFFFF; } span { font-family: 'Courier New'; color: #000000; background: #FFFFFF; font-size: 10pt; } </style> </head> <body bgcolor="#FFFFFF"> <span><span class="S2">// This file has been generated by pyplusplus.</span><br /> <br /> <span class="S2">//Boost Software License( http://boost.org/more/license_info.html )</span><br /> <br /> <span class="S2">// std directories: []</span><br /> <span class="S2">// user defined directories: ['d:\\pygccxml_sources\\source\\pyplusplus\\examples\\tutorials']</span><br /> <br /> <span class="S9">#include "boost/python.hpp"</span><br /> <br /> <span class="S9">#include "hello_world.hpp"</span><br /> <br /> <span class="S5">namespace</span><span class="S0"> </span>bp<span class="S0"> </span><span class="S10">=</span><span class="S0"> </span>boost<span class="S10">::</span>python<span class="S10">;</span><br /> <br /> BOOST_PYTHON_MODULE<span class="S10">(</span>hw<span class="S10">){</span><br /> <span class="S0"> </span>bp<span class="S10">::</span>enum_<span class="S10"><</span>color<span class="S10">>(</span><span class="S6">"Color"</span><span class="S10">)</span><br /> <span class="S0"> </span><span class="S10">.</span>value<span class="S10">(</span><span class="S6">"blue"</span><span class="S10">,</span><span class="S0"> </span>blue<span class="S10">)</span><br /> <span class="S0"> </span><span class="S10">.</span>value<span class="S10">(</span><span class="S6">"green"</span><span class="S10">,</span><span class="S0"> </span>green<span class="S10">)</span><br /> <span class="S0"> </span><span class="S10">.</span>value<span class="S10">(</span><span class="S6">"red"</span><span class="S10">,</span><span class="S0"> </span>red<span class="S10">)</span><br /> <span class="S0"> </span><span class="S10">.</span>export_values<span class="S10">()</span><br /> <span class="S0"> </span><span class="S10">;</span><br /> <br /> <span class="S0"> </span>bp<span class="S10">::</span>class_<span class="S10"><</span><span class="S0"> </span>animal<span class="S0"> </span><span class="S10">>(</span><span class="S0"> </span><span class="S6">"animal"</span><span class="S10">,</span><span class="S0"> </span>bp<span class="S10">::</span>init<span class="S10"><</span><span class="S0"> </span>bp<span class="S10">::</span>optional<span class="S10"><</span><span class="S0"> </span>std<span class="S10">::</span>string<span class="S0"> </span><span class="S5">const</span><span class="S0"> </span><span class="S10">&</span><span class="S0"> </span><span class="S10">></span><span class="S0"> </span><span class="S10">>((</span><span class="S0"> </span>bp<span class="S10">::</span>arg<span class="S10">(</span><span class="S6">"name"</span><span class="S10">)=</span><span class="S6">""</span><span class="S0"> </span><span class="S10">))</span><span class="S0"> </span><span class="S10">)</span><span class="S0"> </span><br /> <span class="S0"> </span><span class="S10">.</span>def<span class="S10">(</span><span class="S0"> </span><span class="S6">"get_name_ptr"</span><br /> <span class="S0"> </span><span class="S10">,</span><span class="S0"> </span><span class="S10">&</span>animal<span class="S10">::</span>get_name_ptr<br /> <span class="S0"> </span><span class="S10">,</span><span class="S0"> </span>bp<span class="S10">::</span>return_internal_reference<span class="S10"><</span><span class="S0"> </span><span class="S4">1</span><span class="S10">,</span><span class="S0"> </span>bp<span class="S10">::</span>default_call_policies<span class="S0"> </span><span class="S10">>()</span><span class="S0"> </span><span class="S10">)</span><span class="S0"> </span><br /> <span class="S0"> </span><span class="S10">.</span>def<span class="S10">(</span><span class="S0"> </span><span class="S6">"name"</span><br /> <span class="S0"> </span><span class="S10">,</span><span class="S0"> </span><span class="S10">&</span>animal<span class="S10">::</span>name<br /> <span class="S0"> </span><span class="S10">,</span><span class="S0"> </span>bp<span class="S10">::</span>return_value_policy<span class="S10"><</span><span class="S0"> </span>bp<span class="S10">::</span>copy_const_reference<span class="S10">,</span><span class="S0"> </span>bp<span class="S10">::</span>default_call_policies<span class="S0"> </span><span class="S10">>()</span><span class="S0"> </span><span class="S10">);</span><br /> <br /> <span class="S0"> </span>bp<span class="S10">::</span>implicitly_convertible<span class="S10"><</span><span class="S0"> </span>std<span class="S10">::</span>string<span class="S0"> </span><span class="S5">const</span><span class="S0"> </span><span class="S10">&,</span><span class="S0"> </span>animal<span class="S0"> </span><span class="S10">>();</span><br /> <span class="S10">}</span><br /> <span class="S0"></span></span> </body> </html> |
From: Roman <rom...@us...> - 2006-04-12 07:40:43
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/tutorials In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20656/pyplusplus/examples/tutorials Modified Files: generate_code.py hello_world.py.cpp Log Message: Documentation improvments Index: generate_code.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/tutorials/generate_code.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** generate_code.py 11 Apr 2006 11:02:12 -0000 1.3 --- generate_code.py 12 Apr 2006 07:40:34 -0000 1.4 *************** *** 50,53 **** --- 50,56 ---- mb.build_code_creator( module_name='hw' ) + #It is common requirement in software world - each file should have license + mb.code_creator.license = '//Boost Software License( http://boost.org/more/license_info.html )' + #I don't want absolute includes within code mb.code_creator.user_defined_directories.append( settings.working_dir ) Index: hello_world.py.cpp =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/tutorials/hello_world.py.cpp,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** hello_world.py.cpp 6 Apr 2006 06:29:37 -0000 1.1 --- hello_world.py.cpp 12 Apr 2006 07:40:34 -0000 1.2 *************** *** 1,6 **** // This file has been generated by pyplusplus. // std directories: [] ! // user defined directories: ['/home/roman/pygccxml_sources/source/pyplusplus/examples/tutorials'] #include "boost/python.hpp" --- 1,8 ---- // This file has been generated by pyplusplus. + //Boost Software License( http://boost.org/more/license_info.html ) + // std directories: [] ! // user defined directories: ['d:\\pygccxml_sources\\source\\pyplusplus\\examples\\tutorials'] #include "boost/python.hpp" |
From: Roman <rom...@us...> - 2006-04-12 07:40:43
|
Update of /cvsroot/pygccxml/source/pyplusplus/decl_wrappers In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20656/pyplusplus/decl_wrappers Modified Files: scopedef_wrapper.py Log Message: Documentation improvments Index: scopedef_wrapper.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/decl_wrappers/scopedef_wrapper.py,v retrieving revision 1.8 retrieving revision 1.9 diff -C2 -d -r1.8 -r1.9 *** scopedef_wrapper.py 6 Apr 2006 06:15:59 -0000 1.8 --- scopedef_wrapper.py 12 Apr 2006 07:40:34 -0000 1.9 *************** *** 26,30 **** 4. function - user ( your ) custom criteria. The interesting thing is that this function will be joined with other arguments ( criteria ). ! 5 recursive - the search declaration range, if True will be search in internal declarations too. --- 26,30 ---- 4. function - user ( your ) custom criteria. The interesting thing is that this function will be joined with other arguments ( criteria ). ! 5. recursive - the search declaration range, if True will be search in internal declarations too. *************** *** 33,36 **** --- 33,37 ---- Example: + ns - referers to global namespace ns.member_function( "do_something ) - will return reference to member *************** *** 40,43 **** --- 41,45 ---- Example 2: + ns - referers to global namespace do_smths = ns.member_functions( "do_something ) - will return instance *************** *** 51,54 **** --- 53,57 ---- Pay attention: you can not use "get" functions or properties. + """ |
From: Roman <rom...@us...> - 2006-04-12 07:40:43
|
Update of /cvsroot/pygccxml/source/pyplusplus/code_creators In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20656/pyplusplus/code_creators Modified Files: smart_pointers.py Log Message: Documentation improvments Index: smart_pointers.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/smart_pointers.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** smart_pointers.py 6 Apr 2006 06:15:58 -0000 1.6 --- smart_pointers.py 12 Apr 2006 07:40:34 -0000 1.7 *************** *** 100,102 **** from_arg = self._instantiate_smart_ptr( self.source ) to_arg = self._instantiate_smart_ptr( self.target ) ! return templates.join(implicitly_convertible, [ from_arg, to_arg ] ) + '();' \ No newline at end of file --- 100,104 ---- from_arg = self._instantiate_smart_ptr( self.source ) to_arg = self._instantiate_smart_ptr( self.target ) ! return templates.join(implicitly_convertible, [ from_arg, to_arg ] ) + '();' ! ! \ No newline at end of file |
From: Matthias B. <mb...@us...> - 2006-04-11 15:38:06
|
Update of /cvsroot/pygccxml/source/pyplusplus/docs In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5401 Added Files: todo.txt Log Message: Added a todo list (as suggested by Roman) --- NEW FILE: todo.txt --- Todo ---- - Provide a way to customize log messages (i.e. set verbosity level) |
From: Matthias B. <mb...@us...> - 2006-04-11 15:03:21
|
Update of /cvsroot/pygccxml/source/pygccxml/parser In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv5473 Modified Files: config.py Log Message: Added doc strings (I just noticed that I hadn't committed that file yet) Index: config.py =================================================================== RCS file: /cvsroot/pygccxml/source/pygccxml/parser/config.py,v retrieving revision 1.13 retrieving revision 1.14 diff -C2 -d -r1.13 -r1.14 *** config.py 28 Feb 2006 07:11:09 -0000 1.13 --- config.py 11 Apr 2006 15:03:07 -0000 1.14 *************** *** 4,8 **** --- 4,16 ---- # http://www.boost.org/LICENSE_1_0.txt) + """This module contains the implementation of the L{config_t} class. + """ + class config_t(object): + """Configuration object to collect parameters for invoking gccxml. + + This class serves as a container for the parameters that can be used + to customize the call to gccxml. + """ def __init__( self , gccxml_path='' *************** *** 13,16 **** --- 21,26 ---- , start_with_declarations=None , verbose=False): + """Constructor. + """ object.__init__( self ) self.__gccxml_path = gccxml_path |
From: Roman <rom...@us...> - 2006-04-11 11:02:19
|
Update of /cvsroot/pygccxml/source/pyplusplus/examples/tutorials In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv17332/pyplusplus/examples/tutorials Modified Files: generate_code.py Log Message: small spell erroc correction Index: generate_code.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/tutorials/generate_code.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** generate_code.py 6 Apr 2006 17:44:46 -0000 1.2 --- generate_code.py 11 Apr 2006 11:02:12 -0000 1.3 *************** *** 44,48 **** mb.print_declarations() ! #I can print single declarations mb.print_declarations( animal ) --- 44,48 ---- mb.print_declarations() ! #I can print single declaration mb.print_declarations( animal ) |
From: Roman <rom...@us...> - 2006-04-11 07:34:32
|
Update of /cvsroot/pygccxml/source/release_manager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18951/release_manager Modified Files: release_builder.py Log Message: fixing bug in document generation Index: release_builder.py =================================================================== RCS file: /cvsroot/pygccxml/source/release_manager/release_builder.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** release_builder.py 10 Apr 2006 13:14:27 -0000 1.2 --- release_builder.py 11 Apr 2006 07:34:27 -0000 1.3 *************** *** 21,29 **** #next release root dir self.nrroot_dir = os.path.join( self.scroot_dir, '__next_release__' ) ! self.packages = {} for pkg in ('pygccxml', 'pyplusplus'): ! self.packages[ pkg ] = os.path.join( self.nrroot_dir ! , pkg + self.get_version( pkg ) ) def get_version( self, package_name ): --- 21,40 ---- #next release root dir self.nrroot_dir = os.path.join( self.scroot_dir, '__next_release__' ) ! ! if not os.environ.has_key( 'PYTHONPATH' ): ! os.environ['PYTHONPATH'] = '' ! if sys.platform == 'win32': ! environment_var_delimiter = ';' ! else: # sys.platform == 'linux2' ! environment_var_delimiter = ':' ! ! self.packages = {} for pkg in ('pygccxml', 'pyplusplus'): ! package_path = os.path.join( self.nrroot_dir, pkg + self.get_version( pkg ) ) ! self.packages[ pkg ] = package_path ! os.environ[ 'PYTHONPATH' ] = os.environ[ 'PYTHONPATH' ] \ ! + environment_var_delimiter \ ! + package_path def get_version( self, package_name ): |
From: Roman <rom...@us...> - 2006-04-10 13:14:38
|
Update of /cvsroot/pygccxml/source/release_manager In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29861/release_manager Modified Files: release_builder.py Log Message: fixing small bug in epydoc documentation generation Index: release_builder.py =================================================================== RCS file: /cvsroot/pygccxml/source/release_manager/release_builder.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** release_builder.py 9 Apr 2006 05:17:16 -0000 1.1 --- release_builder.py 10 Apr 2006 13:14:27 -0000 1.2 *************** *** 94,108 **** , ' %(packages)s' ] cmd_line = "epydoc " + ' '.join( options ) ! os.system(cmd_line % { 'output' : os.path.join( self.packages['pygccxml'], 'docs', 'auto_docs' ) , 'name' : 'pygccxml' ! , 'packages' : os.path.join( self.packages['pygccxml'], 'pygccxml' ) ! } ) ! os.system(cmd_line % { 'output' : os.path.join( self.packages['pyplusplus'], 'docs', 'auto_docs' ) , 'name' : 'pyplusplus' ! , 'packages' : ' '.join( [os.path.join( self.packages['pygccxml'], 'pygccxml' ) ! , os.path.join( self.packages['pyplusplus'], 'pyplusplus' ) ] ) ! } ) self.log( 'generating documentation - done' ) --- 94,112 ---- , ' %(packages)s' ] cmd_line = "epydoc " + ' '.join( options ) ! cmd = cmd_line % { 'output' : os.path.join( self.packages['pygccxml'], 'docs', 'auto_docs' ) , 'name' : 'pygccxml' ! , 'packages' : os.path.join( self.packages['pygccxml'], 'pygccxml' ) } ! self.log( 'running epydoc: ' + cmd ) ! os.system( cmd ) ! ! cmd = cmd_line % { 'output' : os.path.join( self.packages['pyplusplus'], 'docs', 'auto_docs' ) , 'name' : 'pyplusplus' ! , 'packages' : ' '.join( [ os.path.join( self.packages['pyplusplus'], 'pyplusplus' ) ! , os.path.join( self.packages['pygccxml'], 'pygccxml' ) ] ) } ! self.log( 'running epydoc: ' + cmd ) ! os.system(cmd) ! self.log( 'generating documentation - done' ) |
From: Roman <rom...@us...> - 2006-04-10 11:57:19
|
Update of /cvsroot/pygccxml/source/pyplusplus/code_creators In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19006/pyplusplus/code_creators Modified Files: array_1_registrator.py calldef.py class_declaration.py enum.py global_variable.py include.py include_directories.py instruction.py license.py member_variable.py Log Message: adding short explanation about code creator class Index: member_variable.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/member_variable.py,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** member_variable.py 28 Feb 2006 08:06:02 -0000 1.12 --- member_variable.py 10 Apr 2006 11:57:15 -0000 1.13 *************** *** 12,15 **** --- 12,20 ---- class member_variable_base_t( declaration_based.declaration_based_t ): + """ + Base class for all member variables code creators. Mainly exists to + simplify file writers algorithms. + """ + def __init__(self, variable, wrapper=None, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 25,28 **** --- 30,37 ---- class member_variable_t( member_variable_base_t ): + """ + Creates boost.python code that exposes member variable. + """ + __PARAM_SEPARATOR = ', ' def __init__(self, variable, parent=None ): *************** *** 59,62 **** --- 68,75 ---- class bit_field_t( member_variable_base_t ): + """ + Creates boost.python code that exposes bit fields member variables + """ + _PARAM_SEPARATOR = ', ' def __init__(self, variable, wrapper, parent=None ): *************** *** 94,97 **** --- 107,114 ---- class bit_field_wrapper_t( declaration_based.declaration_based_t ): + """ + Creates C++ code that creates accessor for bit fields + """ + indent = declaration_based.declaration_based_t.indent BF_GET_TEMPLATE = os.linesep.join([ *************** *** 152,155 **** --- 169,176 ---- class array_mv_t( member_variable_base_t ): + """ + Creates boost.python code that exposes array member variable. + """ + _PARAM_SEPARATOR = ', ' def __init__(self, variable, wrapper, parent=None ): *************** *** 182,185 **** --- 203,210 ---- class array_mv_wrapper_t( declaration_based.declaration_based_t ): + """ + Creates C++ code that register array class. + """ + def __init__(self, variable, parent=None ): declaration_based.declaration_based_t.__init__( self Index: class_declaration.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/class_declaration.py,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** class_declaration.py 6 Apr 2006 06:15:58 -0000 1.39 --- class_declaration.py 10 Apr 2006 11:57:15 -0000 1.40 *************** *** 16,19 **** --- 16,22 ---- class class_t( scoped.scoped_t ): + """ + Creates boost.python code that needed to export a class + """ def __init__(self, class_inst, wrapper=None, parent=None ): scoped.scoped_t.__init__( self *************** *** 251,254 **** --- 254,261 ---- #open question: should I put class wrapper under some specifiec namespace? class class_wrapper_t( scoped.scoped_t ): + """ + Creates C++ code that creates wrapper arround some class + """ + def __init__(self, declaration, class_creator, parent=None ): scoped.scoped_t.__init__( self Index: include.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/include.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** include.py 14 Dec 2005 09:09:52 -0000 1.6 --- include.py 10 Apr 2006 11:57:15 -0000 1.7 *************** *** 10,13 **** --- 10,16 ---- class include_t(code_creator.code_creator_t): + """ + Creates C++ code for include directive + """ def __init__( self, header, parent=None ): code_creator.code_creator_t.__init__(self, parent) *************** *** 38,41 **** --- 41,48 ---- class precompiled_header_t(include_t): + """ + Creates C++ code for precompiled header include directive + """ + def __init__( self, header, parent=None ): include_t.__init__(self, header, parent) Index: calldef.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/calldef.py,v retrieving revision 1.51 retrieving revision 1.52 diff -C2 -d -r1.51 -r1.52 *** calldef.py 6 Apr 2006 06:15:58 -0000 1.51 --- calldef.py 10 Apr 2006 11:57:15 -0000 1.52 *************** *** 11,14 **** --- 11,17 ---- class function_t( declaration_based.declaration_based_t): + """ + Creates boost.python code needed to expose free/member function. + """ _PARAM_SEPARATOR = ', ' def __init__(self, function, wrapper=None, parent=None ): *************** *** 149,152 **** --- 152,159 ---- class function_wrapper_t( declaration_based.declaration_based_t ): + """ + Creates C++ code that builds wrapper arround exposed function. There are + usecases when more then one function is created, for example virtual function. + """ def __init__( self, function, parent=None ): declaration_based.declaration_based_t.__init__( self, declaration=function, parent=parent ) *************** *** 449,452 **** --- 456,462 ---- class constructor_t( declaration_based.declaration_based_t ): + """ + Creates boost.python code needed to expose constructor. + """ def __init__(self, constructor, wrapper=None, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 543,546 **** --- 553,559 ---- class static_method_t( declaration_based.declaration_based_t ): + """ + Creates boost.python code that expose member function as static function. + """ def __init__(self, function, function_code_creator=None, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 560,563 **** --- 573,580 ---- class constructor_wrapper_t( declaration_based.declaration_based_t ): + """ + Creates C++ code that builds wrapper arround exposed constructor. + """ + def __init__( self, constructor, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 612,615 **** --- 629,635 ---- #I should understand this more class special_constructor_wrapper_t( declaration_based.declaration_based_t ): + """ + Creates wrapper class constructor from wrapped class instance. + """ def __init__( self, class_inst, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 644,647 **** --- 664,670 ---- class trivial_constructor_wrapper_t( declaration_based.declaration_based_t ): + """ + Creates trivial wrapper class constructor. + """ def __init__( self, class_inst, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 665,668 **** --- 688,694 ---- #you can define operators that are not. class operator_t( declaration_based.declaration_based_t ): + """ + Creates boost.python code needed to expose supported subset of C++ operators. + """ class SELF_POSITION: FIRST = 'first' *************** *** 751,754 **** --- 777,783 ---- class casting_operator_t( declaration_based.declaration_based_t ): + """ + Creates boost.python code needed to register type conversions( implicitly_convertible ) + """ def __init__( self, operator, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 769,772 **** --- 798,806 ---- class casting_member_operator_t( declaration_based.declaration_based_t ): + """ + Creates boost.python code needed to register casting operators. For some + operators Pythonic name is given: __int__, __long__, __float__, __str__ + """ + def prepare_special_cases(): special_cases = {} *************** *** 846,849 **** --- 880,888 ---- class casting_constructor_t( declaration_based.declaration_based_t ): + """ + Creates boost.python code needed to register type conversions( implicitly_convertible ). + This case treat situation when class has public non explicit constuctor from + another type. + """ def __init__( self, constructor, parent=None ): declaration_based.declaration_based_t.__init__( self Index: array_1_registrator.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/array_1_registrator.py,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** array_1_registrator.py 28 Feb 2006 08:06:02 -0000 1.3 --- array_1_registrator.py 10 Apr 2006 11:57:15 -0000 1.4 *************** *** 12,15 **** --- 12,18 ---- class array_1_registrator_t( code_creator.code_creator_t ): + """ + This class creates code that register static sized array + """ def __init__( self, array_type, parent=None ): code_creator.code_creator_t.__init__(self, parent=parent) Index: enum.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/enum.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** enum.py 6 Apr 2006 06:15:58 -0000 1.7 --- enum.py 10 Apr 2006 11:57:15 -0000 1.8 *************** *** 9,12 **** --- 9,15 ---- class enum_t( declaration_based.declaration_based_t ): + """ + Creates boost.python code that expose C++ enum + """ def __init__(self, enum, parent=None ): declaration_based.declaration_based_t.__init__( self Index: license.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/license.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** license.py 14 Dec 2005 09:09:52 -0000 1.2 --- license.py 10 Apr 2006 11:57:15 -0000 1.3 *************** *** 7,10 **** --- 7,14 ---- class license_t(code_creator.code_creator_t): + """ + This class allows user to put his license on the top of every generated file. + License text will be generated as is. + """ def __init__(self, text, parent=None): code_creator.code_creator_t.__init__(self, parent) Index: include_directories.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/include_directories.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** include_directories.py 14 Dec 2005 09:09:52 -0000 1.6 --- include_directories.py 10 Apr 2006 11:57:15 -0000 1.7 *************** *** 9,12 **** --- 9,17 ---- class include_directories_t(instruction.instruction_t): + """ + The instance of this class holds a list of user defined directories. + L{include_t} and {precompiled_header_t} code creators use it to generate + relative include directives. + """ def __init__(self, parent=None ): instruction.instruction_t.__init__(self, parent) Index: instruction.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/instruction.py,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** instruction.py 10 Nov 2005 05:59:33 -0000 1.2 --- instruction.py 10 Apr 2006 11:57:15 -0000 1.3 *************** *** 8,11 **** --- 8,15 ---- class instruction_t(code_creator.code_creator_t): + """ + This class is used as a base class for different instruction for code creators. + """ + #TODO: add silent option and make it default def __init__(self, parent): code_creator.code_creator_t.__init__(self, parent) Index: global_variable.py =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/code_creators/global_variable.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** global_variable.py 28 Feb 2006 08:06:02 -0000 1.6 --- global_variable.py 10 Apr 2006 11:57:15 -0000 1.7 *************** *** 13,16 **** --- 13,20 ---- class global_variable_base_t( declaration_based.declaration_based_t ): + """ + Base class for all global variables code creators. Mainly exists to + simplify file writers algorithms. + """ def __init__(self, variable, wrapper=None, parent=None ): declaration_based.declaration_based_t.__init__( self *************** *** 26,29 **** --- 30,36 ---- class global_variable_t( global_variable_base_t ): + """ + Creates boost.python code that exposes global variable. + """ def __init__(self, variable, parent=None ): global_variable_base_t.__init__( self *************** *** 41,44 **** --- 48,55 ---- class array_gv_t( global_variable_base_t ): + """ + Creates boost.python code that exposes array global variable. + """ + _PARAM_SEPARATOR = ', ' def __init__(self, variable, wrapper, parent=None ): *************** *** 58,61 **** --- 69,76 ---- class array_gv_wrapper_t( declaration_based.declaration_based_t ): + """ + Creates C++ code that register array class. + """ + def __init__(self, variable, parent=None ): declaration_based.declaration_based_t.__init__( self |
From: Roman <rom...@us...> - 2006-04-10 08:21:06
|
Update of /cvsroot/pygccxml/source/pyplusplus/docs/history In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7773/pyplusplus/docs/history Modified Files: history.rest Log Message: adding few notes to history Index: history.rest =================================================================== RCS file: /cvsroot/pygccxml/source/pyplusplus/docs/history/history.rest,v retrieving revision 1.10 retrieving revision 1.11 diff -C2 -d -r1.10 -r1.11 *** history.rest 6 Apr 2006 06:16:00 -0000 1.10 --- history.rest 10 Apr 2006 08:20:58 -0000 1.11 *************** *** 5,11 **** .. contents:: Table of contents ! ----------- ! CVS Version ! ----------- 1. New GUI features: --- 5,20 ---- .. contents:: Table of contents ! ------------- ! Version 0.7.0 ! ------------- ! ! Many thanks to *Matthias Baas* and *Allen Bierbaum*! They contributed so much to ! pyplusplus, especially Matthias: ! ! * New high level API: `pyplusplus`_ has simple and poweful API ! ! * Documentation: Matthias and Allen added a lot of documentation strings ! ! * Bug fixes and performance improvments 1. New GUI features: *************** *** 54,57 **** --- 63,94 ---- 6. Small bug fix - from now file with identical content will not be overwritten. + 7. Boost.Python ``optional`` is now supported and used when a constructor has a + a default argument. + + 8. `pyplusplus`_ now generates correct code for hierarchy of abstract classes: + :: + + struct abstract1{ + virtual void do_smth() = 0; + } + + struct abstract2 : public abstract1{ + virtual void do_smth_else() = 0; + } + + struct concrete : public abstract2{ + virtual void do_smth(){}; + virtual void do_smth_else(){}; + } + + 9. Logging functionality has been added + + 10. New packages ``module_builder``, ``decl_wrappers`` and ``_logging_`` has + been added. + + 11. ... + + http://boost.org/libs/python/doc/v2/init.html#optional-spec + ------------- Version 0.6.0 |