[pygccxml-commit] SF.net SVN: pygccxml:[1526] pyplusplus_dev/unittests/data
Brought to you by:
mbaas,
roman_yakovenko
|
From: <rom...@us...> - 2009-01-04 18:33:10
|
Revision: 1526
http://pygccxml.svn.sourceforge.net/pygccxml/?rev=1526&view=rev
Author: roman_yakovenko
Date: 2009-01-04 18:32:59 +0000 (Sun, 04 Jan 2009)
Log Message:
-----------
small refactoring
Added Paths:
-----------
pyplusplus_dev/unittests/data/ctypes/
pyplusplus_dev/unittests/data/ctypes/pof/
pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.cpp
pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.h
pyplusplus_dev/unittests/data/ctypes/pof/sconscript
Removed Paths:
-------------
pyplusplus_dev/unittests/data/ctypes/ctypes_pof.cpp
pyplusplus_dev/unittests/data/ctypes/ctypes_pof.h
pyplusplus_dev/unittests/data/ctypes/sconscript
pyplusplus_dev/unittests/data/ctypes_pof/
Deleted: pyplusplus_dev/unittests/data/ctypes/ctypes_pof.cpp
===================================================================
--- pyplusplus_dev/unittests/data/ctypes_pof/ctypes_pof.cpp 2009-01-04 11:37:54 UTC (rev 1525)
+++ pyplusplus_dev/unittests/data/ctypes/ctypes_pof.cpp 2009-01-04 18:32:59 UTC (rev 1526)
@@ -1,69 +0,0 @@
-#include "ctypes_pof.h"
-#include "windows.h"
-#include <iostream>
-
-namespace pof{
-
-number_t::number_t()
-: m_value(0)
-{
-// std::cout << "{C++} number_t( 0 )" << std::endl;
-}
-
-
-number_t::number_t(int value)
-: m_value(value)
-{
-// std::cout << "{C++} number_t( " << value << " )" << std::endl;
-}
-
-number_t::~number_t() {
-// std::cout << "{C++} ~number_t()" << std::endl;
-}
-void number_t::print_it() const {
- std::cout << "{C++} value: " << m_value << std::endl;
-}
-
-int number_t::get_value() const{
- return m_value;
-}
-
-void number_t::set_value(int x){
- m_value = x;
-}
-
-number_t number_t::clone() const{
- return number_t(*this);
-}
-
-std::auto_ptr<number_t> number_t::clone_ptr() const{
- return std::auto_ptr<number_t>( new number_t( *this ) );
-}
-
-}
-
-using namespace pof;
-
-void do_smth( number_aptr_t& ){
-}
-
-int identity( int some_data){ return some_data;}
-
-int identity_cpp( int data){ return data; }
-
-//~ BOOL APIENTRY DllMain( HMODULE hModule,
- //~ DWORD ul_reason_for_call,
- //~ LPVOID lpReserved
- //~ )
-//~ {
- //~ switch (ul_reason_for_call)
- //~ {
- //~ case DLL_PROCESS_ATTACH:
- //~ case DLL_THREAD_ATTACH:
- //~ case DLL_THREAD_DETACH:
- //~ case DLL_PROCESS_DETACH:
- //~ break;
- //~ }
- //~ return TRUE;
-//~ }
-
Deleted: pyplusplus_dev/unittests/data/ctypes/ctypes_pof.h
===================================================================
--- pyplusplus_dev/unittests/data/ctypes_pof/ctypes_pof.h 2009-01-04 11:37:54 UTC (rev 1525)
+++ pyplusplus_dev/unittests/data/ctypes/ctypes_pof.h 2009-01-04 18:32:59 UTC (rev 1526)
@@ -1,36 +0,0 @@
-#pragma once
-
-#include <memory>
-
-namespace pof{
-
-class __declspec(dllexport) number_t{
-public:
- number_t();
- explicit number_t(int value);
- virtual ~number_t();
- virtual void print_it() const;
- int get_value() const;
- int get_value(){ return m_value; }
- void set_value(int x);
-
- number_t clone() const;
- std::auto_ptr<number_t> clone_ptr() const;
-private:
- int m_value;
-};
-
-}
-template class __declspec(dllexport) std::auto_ptr< pof::number_t >;
-
-typedef std::auto_ptr< pof::number_t > number_aptr_t;
-
-void __declspec(dllexport) do_smth( number_aptr_t& );
-
-extern "C"{
-
-int __declspec(dllexport) identity( int );
-
-}
-
-int __declspec(dllexport) identity_cpp( int );
\ No newline at end of file
Copied: pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.cpp (from rev 1525, pyplusplus_dev/unittests/data/ctypes_pof/ctypes_pof.cpp)
===================================================================
--- pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.cpp (rev 0)
+++ pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.cpp 2009-01-04 18:32:59 UTC (rev 1526)
@@ -0,0 +1,69 @@
+#include "ctypes_pof.h"
+#include "windows.h"
+#include <iostream>
+
+namespace pof{
+
+number_t::number_t()
+: m_value(0)
+{
+// std::cout << "{C++} number_t( 0 )" << std::endl;
+}
+
+
+number_t::number_t(int value)
+: m_value(value)
+{
+// std::cout << "{C++} number_t( " << value << " )" << std::endl;
+}
+
+number_t::~number_t() {
+// std::cout << "{C++} ~number_t()" << std::endl;
+}
+void number_t::print_it() const {
+ std::cout << "{C++} value: " << m_value << std::endl;
+}
+
+int number_t::get_value() const{
+ return m_value;
+}
+
+void number_t::set_value(int x){
+ m_value = x;
+}
+
+number_t number_t::clone() const{
+ return number_t(*this);
+}
+
+std::auto_ptr<number_t> number_t::clone_ptr() const{
+ return std::auto_ptr<number_t>( new number_t( *this ) );
+}
+
+}
+
+using namespace pof;
+
+void do_smth( number_aptr_t& ){
+}
+
+int identity( int some_data){ return some_data;}
+
+int identity_cpp( int data){ return data; }
+
+//~ BOOL APIENTRY DllMain( HMODULE hModule,
+ //~ DWORD ul_reason_for_call,
+ //~ LPVOID lpReserved
+ //~ )
+//~ {
+ //~ switch (ul_reason_for_call)
+ //~ {
+ //~ case DLL_PROCESS_ATTACH:
+ //~ case DLL_THREAD_ATTACH:
+ //~ case DLL_THREAD_DETACH:
+ //~ case DLL_PROCESS_DETACH:
+ //~ break;
+ //~ }
+ //~ return TRUE;
+//~ }
+
Copied: pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.h (from rev 1525, pyplusplus_dev/unittests/data/ctypes_pof/ctypes_pof.h)
===================================================================
--- pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.h (rev 0)
+++ pyplusplus_dev/unittests/data/ctypes/pof/ctypes_pof.h 2009-01-04 18:32:59 UTC (rev 1526)
@@ -0,0 +1,36 @@
+#pragma once
+
+#include <memory>
+
+namespace pof{
+
+class __declspec(dllexport) number_t{
+public:
+ number_t();
+ explicit number_t(int value);
+ virtual ~number_t();
+ virtual void print_it() const;
+ int get_value() const;
+ int get_value(){ return m_value; }
+ void set_value(int x);
+
+ number_t clone() const;
+ std::auto_ptr<number_t> clone_ptr() const;
+private:
+ int m_value;
+};
+
+}
+template class __declspec(dllexport) std::auto_ptr< pof::number_t >;
+
+typedef std::auto_ptr< pof::number_t > number_aptr_t;
+
+void __declspec(dllexport) do_smth( number_aptr_t& );
+
+extern "C"{
+
+int __declspec(dllexport) identity( int );
+
+}
+
+int __declspec(dllexport) identity_cpp( int );
\ No newline at end of file
Copied: pyplusplus_dev/unittests/data/ctypes/pof/sconscript (from rev 1525, pyplusplus_dev/unittests/data/ctypes_pof/sconscript)
===================================================================
--- pyplusplus_dev/unittests/data/ctypes/pof/sconscript (rev 0)
+++ pyplusplus_dev/unittests/data/ctypes/pof/sconscript 2009-01-04 18:32:59 UTC (rev 1526)
@@ -0,0 +1,9 @@
+Import('*')
+
+target_name = 'ctypes_pof'
+shlib = env.SharedLibrary( target=target_name
+ , source=[ target_name + '.cpp' ]
+ , CCFLAGS=[ r"/MD",r"/EHsc",r"/GR",r"/Zc:wchar_t",r"/Zc:forScope" ]
+ , LINKFLAGS=[r"/MAP:${TARGET.base}.map", r"/MAPINFO:EXPORTS"] )
+
+env.Alias( target_name, shlib )
Deleted: pyplusplus_dev/unittests/data/ctypes/sconscript
===================================================================
--- pyplusplus_dev/unittests/data/ctypes_pof/sconscript 2009-01-04 11:37:54 UTC (rev 1525)
+++ pyplusplus_dev/unittests/data/ctypes/sconscript 2009-01-04 18:32:59 UTC (rev 1526)
@@ -1,9 +0,0 @@
-Import('*')
-
-target_name = 'ctypes_pof'
-shlib = env.SharedLibrary( target=target_name
- , source=[ target_name + '.cpp' ]
- , CCFLAGS=[ r"/MD",r"/EHsc",r"/GR",r"/Zc:wchar_t",r"/Zc:forScope" ]
- , LINKFLAGS=[r"/MAP:${TARGET.base}.map", r"/MAPINFO:EXPORTS"] )
-
-env.Alias( target_name, shlib )
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|