Forced wrap to always add a "generated by" header, updated expected test code

release/4.3a0
Alex Cunningham 2012-02-06 19:45:40 +00:00
parent 345580c7f8
commit ded872af5f
105 changed files with 132 additions and 75 deletions

View File

@ -51,7 +51,7 @@ void Class::matlab_proxy(const string& classFile) const {
file.oss << "end" << endl;
// close file
file.emit(false);
file.emit(true);
}
/* ************************************************************************* */

View File

@ -42,7 +42,7 @@ void Method::matlab_mfile(const string& classPath) const {
file.oss << "end" << endl;
// close file
file.emit(false);
file.emit(true);
}
/* ************************************************************************* */

View File

@ -43,7 +43,7 @@ void StaticMethod::matlab_mfile(const string& toolboxPath, const string& classNa
file.oss << "end" << endl;
// close file
file.emit(false);
file.emit(true);
}
/* ************************************************************************* */

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef Point2
properties
self = 0

View File

@ -0,0 +1,11 @@
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
{
checkArguments("argChar",nargout,nargin-1,1);
shared_ptr<Point2> self = unwrap_shared_ptr< Point2 >(in[0],"Point2");
char a = unwrap< char >(in[1]);
self->argChar(a);
}

View File

@ -0,0 +1,5 @@
automatically generated by wrap
function result = argChar(obj,a)
% usage: obj.argChar(a)
error('need to compile argChar.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = dim(obj)
% usage: obj.dim()
error('need to compile dim.cpp');

View File

@ -0,0 +1,11 @@
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
{
checkArguments("returnChar",nargout,nargin-1,0);
shared_ptr<Point2> self = unwrap_shared_ptr< Point2 >(in[0],"Point2");
char result = self->returnChar();
out[0] = wrap< char >(result);
}

View File

@ -0,0 +1,5 @@
automatically generated by wrap
function result = returnChar(obj)
% usage: obj.returnChar()
error('need to compile returnChar.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = vectorConfusion(obj)
% usage: obj.vectorConfusion()
error('need to compile vectorConfusion.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = x(obj)
% usage: obj.x()
error('need to compile x.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = y(obj)
% usage: obj.y()
error('need to compile y.cpp');

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef Point3
properties
self = 0

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point3.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = norm(obj)
% usage: obj.norm()
error('need to compile norm.cpp');

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef Test
properties
self = 0

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = arg_EigenConstRef(obj,value)
% usage: obj.arg_EigenConstRef(value)
error('need to compile arg_EigenConstRef.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function [first,second] = create_MixedPtrs(obj)
% usage: obj.create_MixedPtrs()
error('need to compile create_MixedPtrs.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function [first,second] = create_ptrs(obj)
% usage: obj.create_ptrs()
error('need to compile create_ptrs.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = print(obj)
% usage: obj.print()
error('need to compile print.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_Point2Ptr(obj,value)
% usage: obj.return_Point2Ptr(value)
error('need to compile return_Point2Ptr.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_Test(obj,value)
% usage: obj.return_Test(value)
error('need to compile return_Test.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_TestPtr(obj,value)
% usage: obj.return_TestPtr(value)
error('need to compile return_TestPtr.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_bool(obj,value)
% usage: obj.return_bool(value)
error('need to compile return_bool.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_double(obj,value)
% usage: obj.return_double(value)
error('need to compile return_double.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_field(obj,t)
% usage: obj.return_field(t)
error('need to compile return_field.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_int(obj,value)
% usage: obj.return_int(value)
error('need to compile return_int.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_matrix1(obj,value)
% usage: obj.return_matrix1(value)
error('need to compile return_matrix1.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_matrix2(obj,value)
% usage: obj.return_matrix2(value)
error('need to compile return_matrix2.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function [first,second] = return_pair(obj,v,A)
% usage: obj.return_pair(v,A)
error('need to compile return_pair.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function [first,second] = return_ptrs(obj,p1,p2)
% usage: obj.return_ptrs(p1,p2)
error('need to compile return_ptrs.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_size_t(obj,value)
% usage: obj.return_size_t(value)
error('need to compile return_size_t.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_string(obj,value)
% usage: obj.return_string(value)
error('need to compile return_string.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_vector1(obj,value)
% usage: obj.return_vector1(value)
error('need to compile return_vector1.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = return_vector2(obj,value)
% usage: obj.return_vector2(value)
error('need to compile return_vector2.cpp');

View File

@ -1,4 +1,4 @@
# automatically generated by wrap on 2012-Jan-23
# automatically generated by wrap
MEX = mex
MEXENDING = mexa64

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point3.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = Point3_StaticFunctionRet(z)
% usage: x = Point3_StaticFunctionRet(z)
error('need to compile Point3_StaticFunctionRet.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point3.h>
using namespace geometry;

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = Point3_staticFunction()
% usage: x = Point3_staticFunction()
error('need to compile Point3_staticFunction.cpp');

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2012-Jan-23
% automatically generated by wrap
echo on
toolboxpath = mfilename('fullpath');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2012-Jan-15
% automatically generated by wrap
function result = new_Point2_(obj)
error('need to compile new_Point2_.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point2.h>
using namespace geometry;

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2012-Jan-15
% automatically generated by wrap
function result = new_Point2_dd(obj,x,y)
error('need to compile new_Point2_dd.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <Point3.h>
using namespace geometry;

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2012-Jan-15
% automatically generated by wrap
function result = new_Point3_ddd(obj,x,y,z)
error('need to compile new_Point3_ddd.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2012-Jan-15
% automatically generated by wrap
function result = new_Test_(obj)
error('need to compile new_Test_.cpp');
end

View File

@ -1,10 +0,0 @@
// automatically generated by wrap on 2011-Dec-01
#include <wrap/matlab.h>
#include <Test.h>
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])
{
checkArguments("new_Test_b",nargout,nargin,1);
bool value = unwrap< bool >(in[0]);
Test* self = new Test(value);
out[0] = wrap_constructed(self,"Test");
}

View File

@ -1,4 +0,0 @@
% automatically generated by wrap on 2011-Dec-01
function result = new_Test_b(obj,value)
error('need to compile new_Test_b.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2012-Jan-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <folder/path/to/Test.h>
using namespace geometry;

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2012-Jan-15
% automatically generated by wrap
function result = new_Test_dM(obj,a,b)
error('need to compile new_Test_dM.cpp');
end

View File

@ -1,10 +1,11 @@
% automatically generated by wrap
classdef ClassD
properties
self = 0
end
methods
function obj = ClassD(varargin)
if nargin == 0, obj.self = new_ClassD_(); end
if (nargin == 0), obj.self = new_ClassD_(); end
if nargin ~= 13 && obj.self == 0, error('ClassD constructor failed'); end
end
function display(obj), obj.print(''); end

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef ns1ClassA
properties
self = 0

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef ns1ClassB
properties
self = 0

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <path/to/ns2.h>
#include <path/to/ns2/ClassA.h>

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = memberFunction(obj)
% usage: obj.memberFunction()
error('need to compile memberFunction.cpp');

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef ns2ClassA
properties
self = 0

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <path/to/ns2.h>
#include <path/to/ns2/ClassA.h>

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = nsArg(obj,arg)
% usage: obj.nsArg(arg)
error('need to compile nsArg.cpp');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <path/to/ns2.h>
#include <path/to/ns2/ClassA.h>

View File

@ -1,3 +1,4 @@
automatically generated by wrap
function result = nsReturn(obj,q)
% usage: obj.nsReturn(q)
error('need to compile nsReturn.cpp');

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef ns2ClassC
properties
self = 0

View File

@ -1,3 +1,4 @@
% automatically generated by wrap
classdef ns2ns3ClassB
properties
self = 0

View File

@ -1,4 +1,4 @@
# automatically generated by wrap on 2011-Dec-15
# automatically generated by wrap
MEX = mex
MEXENDING = mexa64

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2011-Dec-15
% automatically generated by wrap
echo on
toolboxpath = mfilename('fullpath');

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <ClassD.h>
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2011-Dec-15
% automatically generated by wrap
function result = new_ClassD_(obj)
error('need to compile new_ClassD_.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <path/to/ns1.h>
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2011-Dec-15
% automatically generated by wrap
function result = new_ns1ClassA_(obj)
error('need to compile new_ns1ClassA_.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <path/to/ns1.h>
#include <path/to/ns1/ClassB.h>

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2011-Dec-15
% automatically generated by wrap
function result = new_ns1ClassB_(obj)
error('need to compile new_ns1ClassB_.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <path/to/ns2.h>
#include <path/to/ns2/ClassA.h>

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2011-Dec-15
% automatically generated by wrap
function result = new_ns2ClassA_(obj)
error('need to compile new_ns2ClassA_.cpp');
end

View File

@ -1,4 +1,4 @@
// automatically generated by wrap on 2011-Dec-15
// automatically generated by wrap
#include <wrap/matlab.h>
#include <path/to/ns2.h>
void mexFunction(int nargout, mxArray *out[], int nargin, const mxArray *in[])

View File

@ -1,4 +1,4 @@
% automatically generated by wrap on 2011-Dec-15
% automatically generated by wrap
function result = new_ns2ClassC_(obj)
error('need to compile new_ns2ClassC_.cpp');
end

Some files were not shown because too many files have changed in this diff Show More