[pygccxml-commit] SF.net SVN: pygccxml:[1649]
Brought to you by:
mbaas,
roman_yakovenko
From: <rom...@us...> - 2009-02-02 13:53:22
|
Revision: 1649 http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1649&view=rev Author: roman_yakovenko Date: 2009-02-02 13:53:17 +0000 (Mon, 02 Feb 2009) Log Message: ----------- sphinx Modified Paths: -------------- pygccxml_dev/docs/apidocs/declarations.rest pygccxml_dev/docs/pygccxml.rest pygccxml_dev/pygccxml/declarations/scopedef.py pygccxml_dev/pygccxml/parser/declarations_cache.py pygccxml_dev/unittests/data/core_cache.hpp pyplusplus_dev/examples/pyeasybmp_dev/ctypes/easybmp.py Modified: pygccxml_dev/docs/apidocs/declarations.rest =================================================================== --- pygccxml_dev/docs/apidocs/declarations.rest 2009-02-02 09:17:41 UTC (rev 1648) +++ pygccxml_dev/docs/apidocs/declarations.rest 2009-02-02 13:53:17 UTC (rev 1649) @@ -161,7 +161,7 @@ :show-inheritance: The :mod:`typedef <pygccxml.declarations.typedef>` module ------------------------------------------------ +--------------------------------------------------------- .. automodule:: pygccxml.declarations.typedef :members: Modified: pygccxml_dev/docs/pygccxml.rest =================================================================== --- pygccxml_dev/docs/pygccxml.rest 2009-02-02 09:17:41 UTC (rev 1648) +++ pygccxml_dev/docs/pygccxml.rest 2009-02-02 13:53:17 UTC (rev 1649) @@ -112,9 +112,10 @@ `pygccxml`_ comes with comprehensive unit tests. They are executed on Windows XP and `Ubuntu`_ Linux operating systems. In most cases Python 2.5 and 2.6 are used. -I still maintain backward compatibility to Python 2.4. All in all, `pygccxml` has -more than 230 tests. +All in all, `pygccxml` has more than 230 tests. +Support for Python 2.4 was dropped. + ------------------------------- pygccxml documentation contents ------------------------------- Modified: pygccxml_dev/pygccxml/declarations/scopedef.py =================================================================== --- pygccxml_dev/pygccxml/declarations/scopedef.py 2009-02-02 09:17:41 UTC (rev 1648) +++ pygccxml_dev/pygccxml/declarations/scopedef.py 2009-02-02 13:53:17 UTC (rev 1649) @@ -3,9 +3,7 @@ # accompanying file LICENSE_1_0.txt or copy at # http://www.boost.org/LICENSE_1_0.txt) -""" -defines base class for L{namespace_t} and L{class_t} classes -""" +"""defines :class:`scopedef_t` class""" import time import algorithm @@ -16,7 +14,8 @@ import matcher as matcher_module class scopedef_t( declaration.declaration_t ): - """Base class for L{namespace_t} and L{class_t} classes. + """ + Base class for :class:`namespace_t` and :class:`class_t` classes. This is the base class for all declaration classes that may have children nodes. The children can be accessed via the C{declarations} @@ -26,36 +25,45 @@ can get instance or instances of internal declaration(s). You can find declaration(s) using next criteria: - 1. name - declaration name, could be full qualified name - 2. header_dir - directory, to which belongs file, that the declaration was declarated in. - header_dir should be absolute path. - 3. header_file - file that the declaration was declarated in. - 4. function - user ( your ) custom criteria. The interesting thing is that + + 1. `name` - declaration name, could be full qualified name + + 2. `header_dir` - directory, to which belongs file, that the declaration was declarated in. + `header_dir` should be absolute path. + + 3. `header_file` - file that the declaration was declarated in. + + 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. + 5. `recursive` - the search declaration range, if True will be search in + internal declarations too. + + Every "select" API you can invoke and pass as first argument at declaration name or function. This class will find out correctly what argument represents. - Example:: + Example: :: ns - referrers to global namespace ns.member_function( "do_something ) - will return reference to member function named "do_something". If there is no such function exception will be raised. If there is more then one function exception will be raised too. - Example 2:: + Example 2: :: ns - referers to global namespace do_smths = ns.member_functions( "do_something ) - will return instance of L{mdecl_wrapper_t} object. This object allows you few things: 1. To iterate on selected declarations + 2. To set some property to desired value using one line of code only: do_smths.call_policies = x + 3. To call some function on every instance using one line of code: do_smths.exclude() + Pay attention: you can not use "get" functions or properties. """ Modified: pygccxml_dev/pygccxml/parser/declarations_cache.py =================================================================== --- pygccxml_dev/pygccxml/parser/declarations_cache.py 2009-02-02 09:17:41 UTC (rev 1648) +++ pygccxml_dev/pygccxml/parser/declarations_cache.py 2009-02-02 13:53:17 UTC (rev 1649) @@ -5,9 +5,9 @@ # http://www.boost.org/LICENSE_1_0.txt) import os -import md5 import time -import cPickle +import hashlib +import cPickle from pygccxml import utils import config as cxx_parsers_cfg @@ -19,10 +19,10 @@ # Extend here to use md5 hash for signature # - This change allows duplicate autogenerated files to be recognized #return os.path.getmtime( source ) - sig = md5.new() + sig = hashlib.md5() f = file(filename,'r') sig.update(f.read()) - f.close() + f.close() return sig.hexdigest() def configuration_signature( config ): @@ -32,7 +32,7 @@ a configuration that could cause the declarations generated to be different between runs. """ - sig = md5.new() + sig = hashlib.md5() if isinstance( config, cxx_parsers_cfg.gccxml_configuration_t ): sig.update(str(config.gccxml_path)) sig.update(str(config.working_directory)) @@ -43,19 +43,19 @@ for s in config.define_symbols: sig.update(str(s)) for u in config.undefine_symbols: - sig.update(str(u)) + sig.update(str(u)) return sig.hexdigest() class cache_base_t( object ): logger = utils.loggers.declarations_cache - + def __init__( self ): object.__init__(self) - + def flush(self): """ Flush (write out) the cache to disk if needed. """ raise NotImplementedError() - + def update(self, source_file, configuration, declarations, included_files): """ Update cache entry. @param source_file: path to the C++ source file being parsed @@ -63,14 +63,14 @@ @param declarations: declaration tree found when parsing @param included_files: files included by parsing. """ - raise NotImplementedError() - + raise NotImplementedError() + def cached_value(self, source_file, configuration): """ Return declarations we have cached for the source_file and configuration given. @param source_file: path to the C++ source file being parsed. @param configuration: configuration to use for parsing (config_t) - """ + """ raise NotImplementedError() class record_t( object ): @@ -86,60 +86,60 @@ self.__included_files_signature = included_files_signature self.__declarations = declarations self.__was_hit = True # Track if there was a cache hit - + def _get_was_hit(self): return self.__was_hit def _set_was_hit(self, was_hit): self.__was_hit = was_hit was_hit = property( _get_was_hit, _set_was_hit ) - + def key(self): return ( self.__source_signature, self.__config_signature) - + @staticmethod def create_key( source_file, configuration ): return ( file_signature(source_file) - , configuration_signature(configuration)) - + , configuration_signature(configuration)) + def __source_signature(self): return self.__source_signature source_signature = property( __source_signature ) - + def __config_signature(self): return self.__config_signature config_signature = property( __config_signature ) - + def __included_files(self): return self.__included_files included_files = property( __included_files ) - + def __included_files_signature(self): return self.__included_files_signature included_files_signature = property( __included_files_signature ) - + def __declarations(self): return self.__declarations - declarations = property( __declarations ) + declarations = property( __declarations ) -class file_cache_t( cache_base_t ): - """ Cache implementation to store data in a pickled form in a file. +class file_cache_t( cache_base_t ): + """ Cache implementation to store data in a pickled form in a file. This class contains some cache logic that keeps track of which entries have been 'hit' in the cache and if an entry has not been hit then it is deleted at the time of the flush(). This keeps the cache from - growing larger when files change and are not used again. + growing larger when files change and are not used again. """ def __init__( self, name ): """ @param name: name of the cache file. """ - cache_base_t.__init__( self ) + cache_base_t.__init__( self ) self.__name = name # Name of cache file self.__cache = self.__load( self.__name ) # Map record_key to record_t - self.__needs_flushed = not bool( self.__cache ) # If empty then we need to flush + self.__needs_flushed = not bool( self.__cache ) # If empty then we need to flush for entry in self.__cache.itervalues(): # Clear hit flags entry.was_hit = False - + @staticmethod def __load( file_name ): " Load pickled cache from file and return the object. " @@ -153,7 +153,7 @@ try: file_cache_t.logger.info( 'Loading cache file "%s".' % file_name ) start_time = time.clock() - cache = cPickle.load( cache_file_obj ) + cache = cPickle.load( cache_file_obj ) file_cache_t.logger.debug( "Cache file has been loaded in %.1f secs"%( time.clock() - start_time ) ) file_cache_t.logger.debug( "Found cache in file: [%s] entries: %s" % ( file_name, len( cache.keys() ) ) ) @@ -162,15 +162,15 @@ cache_file_obj.close() file_cache_t.logger.info( "Invalid cache file: [%s] Regenerating." % file_name ) file(file_name, 'w+b').close() # Create empty file - cache = {} # Empty cache + cache = {} # Empty cache return cache - + def flush(self): # If not marked as needing flushed, then return immediately if not self.__needs_flushed: self.logger.debug("Cache did not change, ignoring flush.") return - + # Remove entries that did not get a cache hit num_removed = 0 for key in self.__cache.keys(): @@ -190,14 +190,14 @@ , config_signature=configuration_signature(configuration) , included_files=included_files , included_files_signature=map( file_signature, included_files) - , declarations=declarations + , declarations=declarations ) # Switched over to holding full record in cache so we don't have # to keep creating records in the next method. self.__cache[ record.key() ] = record self.__cache[ record.key() ].was_hit = True self.__needs_flushed = True - + def cached_value(self, source_file, configuration): """ Attempt to lookup the cached decls for the given file and configuration. If not found or signature check fails, returns None. @@ -209,10 +209,10 @@ if self.__is_valid_signature( record ): record.was_hit = True # Record cache hit return record.declarations - else: #some file has been changed + else: #some file has been changed del self.__cache[key] return None - + def __is_valid_signature( self, record ): # This is now part of key #if self.__signature( record.source_file ) != record.source_file_signature: @@ -221,17 +221,17 @@ if file_signature( included_file ) != record.included_files_signature[index]: return False return True - + class dummy_cache_t( cache_base_t ): def __init__( self ): cache_base_t.__init__(self) - + def flush(self): pass - + def update(self, source_file, configuration, declarations, included_files): pass - + def cached_value(self, source_file, configuration): - return None \ No newline at end of file + return None Modified: pygccxml_dev/unittests/data/core_cache.hpp =================================================================== --- pygccxml_dev/unittests/data/core_cache.hpp 2009-02-02 09:17:41 UTC (rev 1648) +++ pygccxml_dev/unittests/data/core_cache.hpp 2009-02-02 13:53:17 UTC (rev 1649) @@ -22,4 +22,4 @@ #endif//__core_cache_hpp__ -//touch//touch//touch//touch//touch//touch//touch//touch \ No newline at end of file +//touch//touch//touch//touch//touch//touch//touch//touch//touch \ No newline at end of file Modified: pyplusplus_dev/examples/pyeasybmp_dev/ctypes/easybmp.py =================================================================== --- pyplusplus_dev/examples/pyeasybmp_dev/ctypes/easybmp.py 2009-02-02 09:17:41 UTC (rev 1648) +++ pyplusplus_dev/examples/pyeasybmp_dev/ctypes/easybmp.py 2009-02-02 13:53:17 UTC (rev 1649) @@ -1,111 +1,108 @@ -# This file has been generated by Py++. - import sys - import ctypes - +import cpptypes import ctypes_utils -easybmplib = ctypes.CPPDLL( r"E:\development\language-binding\pyplusplus_dev\examples\pyeasybmp_dev\easybmp\binaries\easybmp.dll" ) +easybmplib = cpptypes.AnyDLL( r"easybmp.dll" ) easybmplib.undecorated_names = {#mapping between decorated and undecorated names - "unsigned short FlipWORD(unsigned short)" : "?FlipWORD@@YAGG@Z", - "BMP::BMP(void)" : "??0BMP@@QAE@XZ", - "bool BMP::SetPixel(int,int RGBApixel)" : "?SetPixel@BMP@@QAE_NHHURGBApixel@@@Z", - "bool BMP::Read32bitRow(unsigned char *,int,int)" : "?Read32bitRow@BMP@@AAE_NPAEHH@Z", - "bool BMP::ReadFromFile(char const *)" : "?ReadFromFile@BMP@@QAE_NPBD@Z", - "void BMIH::display(void)" : "?display@BMIH@@QAEXXZ", - "double Square(double)" : "?Square@@YANN@Z", - "unsigned char BMP::FindClosestColor RGBApixel &)" : "?FindClosestColor@BMP@@AAEEAAURGBApixel@@@Z", - "bool BMP::Read24bitRow(unsigned char *,int,int)" : "?Read24bitRow@BMP@@AAE_NPAEHH@Z", - "int BMP::TellBitDepth(void)" : "?TellBitDepth@BMP@@QAEHXZ", - "bool BMP::Write24bitRow(unsigned char *,int,int)" : "?Write24bitRow@BMP@@AAE_NPAEHH@Z", - "BMIH::BMIH(void)" : "??0BMIH@@QAE@XZ", - "int BMP::TellWidth(void)" : "?TellWidth@BMP@@QAEHXZ", - "bool BMP::Write1bitRow(unsigned char *,int,int)" : "?Write1bitRow@BMP@@AAE_NPAEHH@Z", - "RGBApixel & RGBApixel::operator= RGBApixel const &)" : "??4RGBApixel@@QAEAAU0@ABU0@@Z", - "int BMP::TellVerticalDPI(void)" : "?TellVerticalDPI@BMP@@QAEHXZ", - "bool BMP::WriteToFile(char const *)" : "?WriteToFile@BMP@@QAE_NPBD@Z", - "bool BMP::Read4bitRow(unsigned char *,int,int)" : "?Read4bitRow@BMP@@AAE_NPAEHH@Z", - "void BMP::SetDPI(int,int)" : "?SetDPI@BMP@@QAEXHH@Z", - "int IntSquare(int)" : "?IntSquare@@YAHH@Z", - "bool BMP::Write32bitRow(unsigned char *,int,int)" : "?Write32bitRow@BMP@@AAE_NPAEHH@Z", - "BMFH & BMFH::operator= BMFH const &)" : "??4BMFH@@QAEAAV0@ABV0@@Z", - "bool BMP::Read1bitRow(unsigned char *,int,int)" : "?Read1bitRow@BMP@@AAE_NPAEHH@Z", - "BMFH::BMFH(void)" : "??0BMFH@@QAE@XZ", - "BMP::BMP BMP &)" : "??0BMP@@QAE@AAV0@@Z", - "bool BMP::Write4bitRow(unsigned char *,int,int)" : "?Write4bitRow@BMP@@AAE_NPAEHH@Z", - "unsigned int FlipDWORD(unsigned int)" : "?FlipDWORD@@YAII@Z", - "int BMP::TellHeight(void)" : "?TellHeight@BMP@@QAEHXZ", - "bool IsBigEndian(void)" : "?IsBigEndian@@YA_NXZ", - "RGBApixel BMP::GetPixel(int,int)const" : "?GetPixel@BMP@@QBE?AURGBApixel@@HH@Z", - "bool BMP::SetBitDepth(int)" : "?SetBitDepth@BMP@@QAE_NH@Z", - "void BMIH::SwitchEndianess(void)" : "?SwitchEndianess@BMIH@@QAEXXZ", - "int BMP::TellNumberOfColors(void)" : "?TellNumberOfColors@BMP@@QAEHXZ", - "BMP & BMP::operator= BMP const &)" : "??4BMP@@QAEAAV0@ABV0@@Z", - "bool BMP::SetColor(int RGBApixel)" : "?SetColor@BMP@@QAE_NHURGBApixel@@@Z", - "void BMFH::SwitchEndianess(void)" : "?SwitchEndianess@BMFH@@QAEXXZ", - "void BMFH::display(void)" : "?display@BMFH@@QAEXXZ", - "bool BMP::SetSize(int,int)" : "?SetSize@BMP@@QAE_NHH@Z", - "bool BMP::Read8bitRow(unsigned char *,int,int)" : "?Read8bitRow@BMP@@AAE_NPAEHH@Z", - "BMIH & BMIH::operator= BMIH const &)" : "??4BMIH@@QAEAAV0@ABV0@@Z", - "bool BMP::Write8bitRow(unsigned char *,int,int)" : "?Write8bitRow@BMP@@AAE_NPAEHH@Z", - "BMP::~BMP(void)" : "??1BMP@@QAE@XZ", - "RGBApixel * BMP::operator()(int,int)" : "??RBMP@@QAEPAURGBApixel@@HH@Z", - "RGBApixel BMP::GetColor(int)" : "?GetColor@BMP@@QAE?AURGBApixel@@H@Z", - "int BMP::TellHorizontalDPI(void)" : "?TellHorizontalDPI@BMP@@QAEHXZ", - "bool BMP::CreateStandardColorTable(void)" : "?CreateStandardColorTable@BMP@@QAE_NXZ", - "?FlipWORD@@YAGG@Z" : "unsigned short FlipWORD(unsigned short)", - "??0BMP@@QAE@XZ" : "BMP::BMP(void)", - "?SetPixel@BMP@@QAE_NHHURGBApixel@@@Z" : "bool BMP::SetPixel(int,int RGBApixel)", - "?Read32bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read32bitRow(unsigned char *,int,int)", - "?ReadFromFile@BMP@@QAE_NPBD@Z" : "bool BMP::ReadFromFile(char const *)", - "?display@BMIH@@QAEXXZ" : "void BMIH::display(void)", - "?Square@@YANN@Z" : "double Square(double)", - "?FindClosestColor@BMP@@AAEEAAURGBApixel@@@Z" : "unsigned char BMP::FindClosestColor RGBApixel &)", - "?Read24bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read24bitRow(unsigned char *,int,int)", - "?TellBitDepth@BMP@@QAEHXZ" : "int BMP::TellBitDepth(void)", - "?Write24bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write24bitRow(unsigned char *,int,int)", - "??0BMIH@@QAE@XZ" : "BMIH::BMIH(void)", - "?TellWidth@BMP@@QAEHXZ" : "int BMP::TellWidth(void)", - "?Write1bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write1bitRow(unsigned char *,int,int)", - "??4RGBApixel@@QAEAAU0@ABU0@@Z" : "RGBApixel & RGBApixel::operator= RGBApixel const &)", - "?TellVerticalDPI@BMP@@QAEHXZ" : "int BMP::TellVerticalDPI(void)", - "?WriteToFile@BMP@@QAE_NPBD@Z" : "bool BMP::WriteToFile(char const *)", - "?Read4bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read4bitRow(unsigned char *,int,int)", - "?SetDPI@BMP@@QAEXHH@Z" : "void BMP::SetDPI(int,int)", - "?IntSquare@@YAHH@Z" : "int IntSquare(int)", - "?Write32bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write32bitRow(unsigned char *,int,int)", - "??4BMFH@@QAEAAV0@ABV0@@Z" : "BMFH & BMFH::operator= BMFH const &)", - "?Read1bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read1bitRow(unsigned char *,int,int)", - "??0BMFH@@QAE@XZ" : "BMFH::BMFH(void)", - "??0BMP@@QAE@AAV0@@Z" : "BMP::BMP BMP &)", - "?Write4bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write4bitRow(unsigned char *,int,int)", - "?FlipDWORD@@YAII@Z" : "unsigned int FlipDWORD(unsigned int)", - "?TellHeight@BMP@@QAEHXZ" : "int BMP::TellHeight(void)", - "?IsBigEndian@@YA_NXZ" : "bool IsBigEndian(void)", - "?GetPixel@BMP@@QBE?AURGBApixel@@HH@Z" : "RGBApixel BMP::GetPixel(int,int)const", - "?SetBitDepth@BMP@@QAE_NH@Z" : "bool BMP::SetBitDepth(int)", - "?SwitchEndianess@BMIH@@QAEXXZ" : "void BMIH::SwitchEndianess(void)", - "?TellNumberOfColors@BMP@@QAEHXZ" : "int BMP::TellNumberOfColors(void)", - "??4BMP@@QAEAAV0@ABV0@@Z" : "BMP & BMP::operator= BMP const &)", - "?SetColor@BMP@@QAE_NHURGBApixel@@@Z" : "bool BMP::SetColor(int RGBApixel)", - "?SwitchEndianess@BMFH@@QAEXXZ" : "void BMFH::SwitchEndianess(void)", - "?display@BMFH@@QAEXXZ" : "void BMFH::display(void)", - "?SetSize@BMP@@QAE_NHH@Z" : "bool BMP::SetSize(int,int)", - "?Read8bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read8bitRow(unsigned char *,int,int)", - "??4BMIH@@QAEAAV0@ABV0@@Z" : "BMIH & BMIH::operator= BMIH const &)", - "?Write8bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write8bitRow(unsigned char *,int,int)", - "??1BMP@@QAE@XZ" : "BMP::~BMP(void)", - "??RBMP@@QAEPAURGBApixel@@HH@Z" : "RGBApixel * BMP::operator()(int,int)", - "?GetColor@BMP@@QAE?AURGBApixel@@H@Z" : "RGBApixel BMP::GetColor(int)", - "?TellHorizontalDPI@BMP@@QAEHXZ" : "int BMP::TellHorizontalDPI(void)", - "?CreateStandardColorTable@BMP@@QAE_NXZ" : "bool BMP::CreateStandardColorTable(void)", + "unsigned short FlipWORD(unsigned short)" : "?FlipWORD@@YAGG@Z", + "BMP::BMP(void)" : "??0BMP@@QAE@XZ", + "bool BMP::SetPixel(int,int RGBApixel)" : "?SetPixel@BMP@@QAE_NHHURGBApixel@@@Z", + "bool BMP::Read32bitRow(unsigned char *,int,int)" : "?Read32bitRow@BMP@@AAE_NPAEHH@Z", + "bool BMP::ReadFromFile(char const *)" : "?ReadFromFile@BMP@@QAE_NPBD@Z", + "void BMIH::display(void)" : "?display@BMIH@@QAEXXZ", + "double Square(double)" : "?Square@@YANN@Z", + "unsigned char BMP::FindClosestColor RGBApixel &)" : "?FindClosestColor@BMP@@AAEEAAURGBApixel@@@Z", + "bool BMP::Read24bitRow(unsigned char *,int,int)" : "?Read24bitRow@BMP@@AAE_NPAEHH@Z", + "int BMP::TellBitDepth(void)" : "?TellBitDepth@BMP@@QAEHXZ", + "bool BMP::Write24bitRow(unsigned char *,int,int)" : "?Write24bitRow@BMP@@AAE_NPAEHH@Z", + "BMIH::BMIH(void)" : "??0BMIH@@QAE@XZ", + "int BMP::TellWidth(void)" : "?TellWidth@BMP@@QAEHXZ", + "bool BMP::Write1bitRow(unsigned char *,int,int)" : "?Write1bitRow@BMP@@AAE_NPAEHH@Z", + "RGBApixel & RGBApixel::operator= RGBApixel const &)" : "??4RGBApixel@@QAEAAU0@ABU0@@Z", + "int BMP::TellVerticalDPI(void)" : "?TellVerticalDPI@BMP@@QAEHXZ", + "bool BMP::WriteToFile(char const *)" : "?WriteToFile@BMP@@QAE_NPBD@Z", + "bool BMP::Read4bitRow(unsigned char *,int,int)" : "?Read4bitRow@BMP@@AAE_NPAEHH@Z", + "void BMP::SetDPI(int,int)" : "?SetDPI@BMP@@QAEXHH@Z", + "int IntSquare(int)" : "?IntSquare@@YAHH@Z", + "bool BMP::Write32bitRow(unsigned char *,int,int)" : "?Write32bitRow@BMP@@AAE_NPAEHH@Z", + "BMFH & BMFH::operator= BMFH const &)" : "??4BMFH@@QAEAAV0@ABV0@@Z", + "bool BMP::Read1bitRow(unsigned char *,int,int)" : "?Read1bitRow@BMP@@AAE_NPAEHH@Z", + "BMFH::BMFH(void)" : "??0BMFH@@QAE@XZ", + "BMP::BMP BMP &)" : "??0BMP@@QAE@AAV0@@Z", + "bool BMP::Write4bitRow(unsigned char *,int,int)" : "?Write4bitRow@BMP@@AAE_NPAEHH@Z", + "unsigned int FlipDWORD(unsigned int)" : "?FlipDWORD@@YAII@Z", + "int BMP::TellHeight(void)" : "?TellHeight@BMP@@QAEHXZ", + "bool IsBigEndian(void)" : "?IsBigEndian@@YA_NXZ", + "RGBApixel BMP::GetPixel(int,int)const" : "?GetPixel@BMP@@QBE?AURGBApixel@@HH@Z", + "bool BMP::SetBitDepth(int)" : "?SetBitDepth@BMP@@QAE_NH@Z", + "void BMIH::SwitchEndianess(void)" : "?SwitchEndianess@BMIH@@QAEXXZ", + "int BMP::TellNumberOfColors(void)" : "?TellNumberOfColors@BMP@@QAEHXZ", + "BMP & BMP::operator= BMP const &)" : "??4BMP@@QAEAAV0@ABV0@@Z", + "bool BMP::SetColor(int RGBApixel)" : "?SetColor@BMP@@QAE_NHURGBApixel@@@Z", + "void BMFH::SwitchEndianess(void)" : "?SwitchEndianess@BMFH@@QAEXXZ", + "void BMFH::display(void)" : "?display@BMFH@@QAEXXZ", + "bool BMP::SetSize(int,int)" : "?SetSize@BMP@@QAE_NHH@Z", + "bool BMP::Read8bitRow(unsigned char *,int,int)" : "?Read8bitRow@BMP@@AAE_NPAEHH@Z", + "BMIH & BMIH::operator= BMIH const &)" : "??4BMIH@@QAEAAV0@ABV0@@Z", + "bool BMP::Write8bitRow(unsigned char *,int,int)" : "?Write8bitRow@BMP@@AAE_NPAEHH@Z", + "BMP::~BMP(void)" : "??1BMP@@QAE@XZ", + "RGBApixel * BMP::operator()(int,int)" : "??RBMP@@QAEPAURGBApixel@@HH@Z", + "RGBApixel BMP::GetColor(int)" : "?GetColor@BMP@@QAE?AURGBApixel@@H@Z", + "int BMP::TellHorizontalDPI(void)" : "?TellHorizontalDPI@BMP@@QAEHXZ", + "bool BMP::CreateStandardColorTable(void)" : "?CreateStandardColorTable@BMP@@QAE_NXZ", + "?FlipWORD@@YAGG@Z" : "unsigned short FlipWORD(unsigned short)", + "??0BMP@@QAE@XZ" : "BMP::BMP(void)", + "?SetPixel@BMP@@QAE_NHHURGBApixel@@@Z" : "bool BMP::SetPixel(int,int RGBApixel)", + "?Read32bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read32bitRow(unsigned char *,int,int)", + "?ReadFromFile@BMP@@QAE_NPBD@Z" : "bool BMP::ReadFromFile(char const *)", + "?display@BMIH@@QAEXXZ" : "void BMIH::display(void)", + "?Square@@YANN@Z" : "double Square(double)", + "?FindClosestColor@BMP@@AAEEAAURGBApixel@@@Z" : "unsigned char BMP::FindClosestColor RGBApixel &)", + "?Read24bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read24bitRow(unsigned char *,int,int)", + "?TellBitDepth@BMP@@QAEHXZ" : "int BMP::TellBitDepth(void)", + "?Write24bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write24bitRow(unsigned char *,int,int)", + "??0BMIH@@QAE@XZ" : "BMIH::BMIH(void)", + "?TellWidth@BMP@@QAEHXZ" : "int BMP::TellWidth(void)", + "?Write1bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write1bitRow(unsigned char *,int,int)", + "??4RGBApixel@@QAEAAU0@ABU0@@Z" : "RGBApixel & RGBApixel::operator= RGBApixel const &)", + "?TellVerticalDPI@BMP@@QAEHXZ" : "int BMP::TellVerticalDPI(void)", + "?WriteToFile@BMP@@QAE_NPBD@Z" : "bool BMP::WriteToFile(char const *)", + "?Read4bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read4bitRow(unsigned char *,int,int)", + "?SetDPI@BMP@@QAEXHH@Z" : "void BMP::SetDPI(int,int)", + "?IntSquare@@YAHH@Z" : "int IntSquare(int)", + "?Write32bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write32bitRow(unsigned char *,int,int)", + "??4BMFH@@QAEAAV0@ABV0@@Z" : "BMFH & BMFH::operator= BMFH const &)", + "?Read1bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read1bitRow(unsigned char *,int,int)", + "??0BMFH@@QAE@XZ" : "BMFH::BMFH(void)", + "??0BMP@@QAE@AAV0@@Z" : "BMP::BMP BMP &)", + "?Write4bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write4bitRow(unsigned char *,int,int)", + "?FlipDWORD@@YAII@Z" : "unsigned int FlipDWORD(unsigned int)", + "?TellHeight@BMP@@QAEHXZ" : "int BMP::TellHeight(void)", + "?IsBigEndian@@YA_NXZ" : "bool IsBigEndian(void)", + "?GetPixel@BMP@@QBE?AURGBApixel@@HH@Z" : "RGBApixel BMP::GetPixel(int,int)const", + "?SetBitDepth@BMP@@QAE_NH@Z" : "bool BMP::SetBitDepth(int)", + "?SwitchEndianess@BMIH@@QAEXXZ" : "void BMIH::SwitchEndianess(void)", + "?TellNumberOfColors@BMP@@QAEHXZ" : "int BMP::TellNumberOfColors(void)", + "??4BMP@@QAEAAV0@ABV0@@Z" : "BMP & BMP::operator= BMP const &)", + "?SetColor@BMP@@QAE_NHURGBApixel@@@Z" : "bool BMP::SetColor(int RGBApixel)", + "?SwitchEndianess@BMFH@@QAEXXZ" : "void BMFH::SwitchEndianess(void)", + "?display@BMFH@@QAEXXZ" : "void BMFH::display(void)", + "?SetSize@BMP@@QAE_NHH@Z" : "bool BMP::SetSize(int,int)", + "?Read8bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Read8bitRow(unsigned char *,int,int)", + "??4BMIH@@QAEAAV0@ABV0@@Z" : "BMIH & BMIH::operator= BMIH const &)", + "?Write8bitRow@BMP@@AAE_NPAEHH@Z" : "bool BMP::Write8bitRow(unsigned char *,int,int)", + "??1BMP@@QAE@XZ" : "BMP::~BMP(void)", + "??RBMP@@QAEPAURGBApixel@@HH@Z" : "RGBApixel * BMP::operator()(int,int)", + "?GetColor@BMP@@QAE?AURGBApixel@@H@Z" : "RGBApixel BMP::GetColor(int)", + "?TellHorizontalDPI@BMP@@QAEHXZ" : "int BMP::TellHorizontalDPI(void)", + "?CreateStandardColorTable@BMP@@QAE_NXZ" : "bool BMP::CreateStandardColorTable(void)", } class BMFH(ctypes.Structure): """class BMFH""" - + def __init__( self, *args ): """BMFH::BMFH(void)""" return self._methods_['__init__']( ctypes.pointer( self ), *args ) @@ -120,7 +117,7 @@ class BMIH(ctypes.Structure): """class BMIH""" - + def __init__( self, *args ): """BMIH::BMIH(void)""" return self._methods_['__init__']( ctypes.pointer( self ), *args ) @@ -135,7 +132,7 @@ class BMP(ctypes.Structure): """class BMP""" - + def TellBitDepth( self, *args ): """int BMP::TellBitDepth(void)""" return self._methods_['TellBitDepth']( ctypes.pointer( self ), *args ) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |