summaryrefslogtreecommitdiff
path: root/matlab/lib/slice2matlab.m
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2017-10-13 22:23:05 +0200
committerJose <jose@zeroc.com>2017-10-13 22:23:05 +0200
commit85779ace6b1989ae6e56cd6c380dfa74fe16b7d6 (patch)
treec547a33f1382c5010c525e3652df8f5eb1cd701d /matlab/lib/slice2matlab.m
parentAdding help text to core classes and functions (diff)
downloadice-85779ace6b1989ae6e56cd6c380dfa74fe16b7d6.tar.bz2
ice-85779ace6b1989ae6e56cd6c380dfa74fe16b7d6.tar.xz
ice-85779ace6b1989ae6e56cd6c380dfa74fe16b7d6.zip
Add slice2matlab help comment
Diffstat (limited to 'matlab/lib/slice2matlab.m')
-rw-r--r--matlab/lib/slice2matlab.m58
1 files changed, 30 insertions, 28 deletions
diff --git a/matlab/lib/slice2matlab.m b/matlab/lib/slice2matlab.m
index f500c1e2a3a..6b58ee00b71 100644
--- a/matlab/lib/slice2matlab.m
+++ b/matlab/lib/slice2matlab.m
@@ -1,35 +1,37 @@
-%{
-**********************************************************************
-Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
-This copy of Ice is licensed to you under the terms described in the
-ICE_LICENSE file included in this distribution.
-**********************************************************************
-%}
function [status, out] = slice2matlab(args)
- rootDir = fileparts(mfilename('fullpath'));
+ % slice2matlab Summary of slice2matlab
+ %
+ % A wrapper function to call Slice to MATLAB compiler slice2matlab.exe.
+ %
+ % Parameters:
+ % args - arguments passed to slice2matlab.exe.
- candidates = {'..\slice2matlab.exe'
- '..\..\cpp\bin\x64\Release\slice2matlab.exe'
- '..\..\cpp\bin\x64\Debug\slice2matlab.exe'
- '..\msbuild\packages\zeroc.ice.v140\build\native\tools\slice2matlab.exe'};
+ % Copyright (c) 2003-2017 ZeroC, Inc. All rights reserved.
- path = '';
- for i = 1:length(candidates)
- f = fullfile(rootDir, candidates{i});
- if exist(f, 'file') == 2
- path = f;
- break;
+ rootDir = fileparts(mfilename('fullpath'));
+
+ candidates = {'..\slice2matlab.exe'
+ '..\..\cpp\bin\x64\Release\slice2matlab.exe'
+ '..\..\cpp\bin\x64\Debug\slice2matlab.exe'
+ '..\msbuild\packages\zeroc.ice.v140\build\native\tools\slice2matlab.exe'};
+
+ path = '';
+ for i = 1:length(candidates)
+ f = fullfile(rootDir, candidates{i});
+ if exist(f, 'file') == 2
+ path = f;
+ break;
+ end
end
- end
- if isempty(path)
- status = 1;
- out = 'Cannot locate slice2matlab.exe\n';
- else
- [status, out] = system(sprintf('%s %s', path, args));
- end
+ if isempty(path)
+ status = 1;
+ out = 'Cannot locate slice2matlab.exe\n';
+ else
+ [status, out] = system(sprintf('%s %s', path, args));
+ end
- if ~isempty(out)
- fprintf(1, '%s', out);
- end
+ if ~isempty(out)
+ fprintf(1, '%s', out);
+ end
end