Skip to content

Commit 2ab9828

Browse files
committed
Add Matlab library from v4
1 parent 96a6a90 commit 2ab9828

21 files changed

+13764
-0
lines changed

src/Core/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ ADD_SUBDIRECTORY(ImportExport)
4141
ADD_SUBDIRECTORY(IEPlugin)
4242
ADD_SUBDIRECTORY(Logging)
4343
ADD_SUBDIRECTORY(Math)
44+
ADD_SUBDIRECTORY(Matlab)
4445
ADD_SUBDIRECTORY(Persistent)
4546
ADD_SUBDIRECTORY(Utils)
4647
ADD_SUBDIRECTORY(Thread)

src/Core/Matlab/CMakeLists.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
#
2+
# For more information, please see: http://software.sci.utah.edu
3+
#
4+
# The MIT License
5+
#
6+
# Copyright (c) 2009 Scientific Computing and Imaging Institute,
7+
# University of Utah.
8+
#
9+
#
10+
# Permission is hereby granted, free of charge, to any person obtaining a
11+
# copy of this software and associated documentation files (the "Software"),
12+
# to deal in the Software without restriction, including without limitation
13+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
14+
# and/or sell copies of the Software, and to permit persons to whom the
15+
# Software is furnished to do so, subject to the following conditions:
16+
#
17+
# The above copyright notice and this permission notice shall be included
18+
# in all copies or substantial portions of the Software.
19+
#
20+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21+
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23+
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26+
# DEALINGS IN THE SOFTWARE.
27+
#
28+
29+
# CMakeLists.txt for Core/Matlab
30+
31+
SET(Core_Matlab_SRCS
32+
matfile.cc
33+
matfiledata.cc
34+
matlabarray.cc
35+
matlabfile.cc
36+
matlabconverter.cc
37+
fieldtomatlab.cc
38+
matlabtofield.cc
39+
)
40+
41+
SCIRUN_ADD_LIBRARY(Core_Matlab ${Core_Matlab_SRCS})
42+
43+
TARGET_LINK_LIBRARIES(Core_Matlab
44+
Core_Datatypes
45+
Core_Exceptions
46+
Core_Thread
47+
Core_Geometry
48+
Core_Util
49+
Core_Math
50+
${SCI_ZLIB_LIBRARY}
51+
${SCI_TEEM_LIBRARY}
52+
)
53+
54+
IF(BUILD_SHARED_LIBS)
55+
ADD_DEFINITIONS(-DBUILD_Core_Matlab)
56+
ENDIF(BUILD_SHARED_LIBS)

src/Core/Matlab/MatlabIO.h

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
/*
2+
For more information, please see: http://software.sci.utah.edu
3+
4+
The MIT License
5+
6+
Copyright (c) 2009 Scientific Computing and Imaging Institute,
7+
University of Utah.
8+
9+
10+
Permission is hereby granted, free of charge, to any person obtaining a
11+
copy of this software and associated documentation files (the "Software"),
12+
to deal in the Software without restriction, including without limitation
13+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
14+
and/or sell copies of the Software, and to permit persons to whom the
15+
Software is furnished to do so, subject to the following conditions:
16+
17+
The above copyright notice and this permission notice shall be included
18+
in all copies or substantial portions of the Software.
19+
20+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
21+
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
23+
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
25+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
26+
DEALINGS IN THE SOFTWARE.
27+
*/
28+
29+
30+
// NOTE: This MatlabIO file is used in different projects as well. Please, do not
31+
// make it depend on other scirun code. This way it is easier to maintain matlabIO
32+
// code among different projects. Thank you.
33+
34+
/*
35+
* FILE: MatlabIO.h
36+
* AUTH: Jeroen G Stinstra
37+
* DATE: 16 MAY 2005
38+
*/
39+
40+
// This will include as well all the other include files
41+
#include <Packages/MatlabInterface/Core/Datatypes/matlabfile.h>
42+

0 commit comments

Comments
 (0)