Update of /cvsroot/pygccxml/source/pyplusplus/examples/tutorials
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28954/pyplusplus/examples/tutorials
Modified Files:
hello_world.hpp
Removed Files:
advanced.py simple.py
Log Message:
There are a lot of changes, sorry CVS did not worked for week or something like this
Changes
1. Lots of code clean up
2. Adding and updating documentation
3. Adding new method on decl_wrapper - readme. This method will return list of msgs to the developer.
For example if function takes by reference fundamental type it will say that this function could not be called from Python
4. Logging functionlity has been added to file writers too
5. Few bug fixes
6. For operator [] call policies is always set.
Index: hello_world.hpp
===================================================================
RCS file: /cvsroot/pygccxml/source/pyplusplus/examples/tutorials/hello_world.hpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** hello_world.hpp 24 Jan 2006 05:46:29 -0000 1.1
--- hello_world.hpp 6 Apr 2006 06:16:08 -0000 1.2
***************
*** 9,21 ****
#include <string>
! namespace pypp{
! inline std::string
! identity( const std::string& msg ){
! return msg;
! }
! }
#endif//__hello_world_hpp__
--- 9,41 ----
#include <string>
! //I want to rename color to Color
! enum color{ red, green, blue };
! struct animal{
!
! animal( const std::string& name="" )
! : m_name( name )
! {}
!
! //I need to set call policies to the function
! const std::string* get_name_ptr() const
! { return &m_name; }
! const std::string& name() const
! { return m_name; }
!
! private:
! std::string m_name;
!
! };
+ //I want to exclude next declarations:
+ struct impl1{};
+ struct impl2{};
+
+ inline int* get_int_ptr(){ return 0;}
+ inline int* get_int_ptr(int){ return 0;}
+ inline int* get_int_ptr(double){ return 0;}
+
#endif//__hello_world_hpp__
--- simple.py DELETED ---
--- advanced.py DELETED ---
|