Commit b8e3c5fe authored by Houtan Bastani's avatar Houtan Bastani

remove meta class access specifiers as they are not supported in MATLAB < R2012a

Revert when minimum supported Matlab version >= R2012a
parent 38be99ed
Pipeline #2204 passed with stage
in 1 minute and 8 seconds
...@@ -205,7 +205,7 @@ classdef graph < handle ...@@ -205,7 +205,7 @@ classdef graph < handle
o.data = ''; o.data = '';
end end
end end
methods (Access = ?section, Hidden = true) methods (Hidden = true)
o = addSeries(o, varargin) o = addSeries(o, varargin)
write(o, fid, pg, sec, row, col, rep_dir) write(o, fid, pg, sec, row, col, rep_dir)
end end
......
...@@ -33,7 +33,7 @@ classdef page < handle ...@@ -33,7 +33,7 @@ classdef page < handle
pageDirName = 'tmpRepDir' % The name of the folder in which to store this page. Only used when the latex command is passed. Default: tmpRepDir. pageDirName = 'tmpRepDir' % The name of the folder in which to store this page. Only used when the latex command is passed. Default: tmpRepDir.
latex = '' % The valid LATEX code to be used for this page. Alows the user to create a page to be included in the report by passing LATEX code directly. Default: empty. latex = '' % The valid LATEX code to be used for this page. Alows the user to create a page to be included in the report by passing LATEX code directly. Default: empty.
end end
methods (Access = ?report) methods
function o = page(varargin) function o = page(varargin)
%function o = page(varargin) %function o = page(varargin)
% Page Class Constructor % Page Class Constructor
...@@ -113,7 +113,7 @@ classdef page < handle ...@@ -113,7 +113,7 @@ classdef page < handle
'@page.page: sections is not a valid option'); '@page.page: sections is not a valid option');
end end
end end
methods (Access = ?report, Hidden = true) methods (Hidden = true)
o = addSection(o, varargin) o = addSection(o, varargin)
o = addVspace(o, varargin) o = addVspace(o, varargin)
o = addTable(o, varargin) o = addTable(o, varargin)
......
...@@ -75,7 +75,7 @@ classdef paragraph < handle ...@@ -75,7 +75,7 @@ classdef paragraph < handle
assert(ischar(o.heading), '@paragraph.paragraph: heading must be a string'); assert(ischar(o.heading), '@paragraph.paragraph: heading must be a string');
end end
end end
methods (Access = ?section, Hidden = true) methods (Hidden = true)
% Methods defined in separate files % Methods defined in separate files
write(o, fid); write(o, fid);
end end
......
...@@ -71,7 +71,7 @@ classdef report_data < handle ...@@ -71,7 +71,7 @@ classdef report_data < handle
end end
end end
end end
methods (Access = ?report_table, Hidden = true) methods (Hidden = true)
writeDataForTable(o, fid, precision) writeDataForTable(o, fid, precision)
end end
end end
...@@ -98,14 +98,14 @@ classdef report_series < handle ...@@ -98,14 +98,14 @@ classdef report_series < handle
end end
end end
end end
methods (Access = ?graph, Hidden = true) methods (Hidden = true)
s = getNameForLegend(o) s = getNameForLegend(o)
writeSeriesForGraph(o, fid, xrange, series_num) writeSeriesForGraph(o, fid, xrange, series_num)
end end
methods (Access = ?report_table, Hidden = true) methods (Hidden = true)
writeSeriesForTable(o, fid, dates, precision, ncols, rowcolor) writeSeriesForTable(o, fid, dates, precision, ncols, rowcolor)
end end
methods (Access = {?graph,?report_table}, Hidden = true) methods (Hidden = true)
tf = isZero(o) tf = isZero(o)
end end
methods (Access = private) methods (Access = private)
......
...@@ -44,7 +44,7 @@ classdef report_table < handle ...@@ -44,7 +44,7 @@ classdef report_table < handle
writeCSV = false % Whether or not to write a CSV file containing the data displayed in the table. The file will be saved in the directory specified by tableDirName with the same base name as specified by tableName with the ending .csv. Default: false. writeCSV = false % Whether or not to write a CSV file containing the data displayed in the table. The file will be saved in the directory specified by tableDirName with the same base name as specified by tableName with the ending .csv. Default: false.
highlightRows = {''} % A cell array containing the colors to use for row highlighting. See shadeColor for how to use colors with reports. Highlighting for a specific row can be overridden by using the tableRowColor option to addSeries. Default: empty. highlightRows = {''} % A cell array containing the colors to use for row highlighting. See shadeColor for how to use colors with reports. Highlighting for a specific row can be overridden by using the tableRowColor option to addSeries. Default: empty.
end end
methods (Access = ?section) methods
function o = report_table(varargin) function o = report_table(varargin)
%function o = report_table(varargin) %function o = report_table(varargin)
% Report_Table Class Constructor % Report_Table Class Constructor
...@@ -150,7 +150,7 @@ classdef report_table < handle ...@@ -150,7 +150,7 @@ classdef report_table < handle
o.seriesToUse = ''; o.seriesToUse = '';
end end
end end
methods (Access = ?section, Hidden = true) methods (Hidden = true)
o = addData(o, varargin) o = addData(o, varargin)
o = addSeries(o, varargin) o = addSeries(o, varargin)
write(o, fid, pg, sec, row, col, rep_dir) write(o, fid, pg, sec, row, col, rep_dir)
......
...@@ -24,7 +24,7 @@ classdef section < handle ...@@ -24,7 +24,7 @@ classdef section < handle
cols = 1 % The number of columns in the section. Default: 1. cols = 1 % The number of columns in the section. Default: 1.
height = '' % A string to be used with the \sectionheight LATEX command. Default: '!' height = '' % A string to be used with the \sectionheight LATEX command. Default: '!'
end end
methods (Access = ?page) methods
function o = section(varargin) function o = section(varargin)
%function o = section(varargin) %function o = section(varargin)
% Section Class Constructor % Section Class Constructor
...@@ -74,7 +74,7 @@ classdef section < handle ...@@ -74,7 +74,7 @@ classdef section < handle
'@section.section: cols must be a string'); '@section.section: cols must be a string');
end end
end end
methods (Access = ?page, Hidden = true) methods (Hidden = true)
o = addGraph(o, varargin) o = addGraph(o, varargin)
o = addParagraph(o, varargin) o = addParagraph(o, varargin)
o = addTable(o, varargin) o = addTable(o, varargin)
......
...@@ -21,7 +21,7 @@ classdef vspace < handle ...@@ -21,7 +21,7 @@ classdef vspace < handle
hline = 0 % Number of horizontal lines to be inserted. Default 0 hline = 0 % Number of horizontal lines to be inserted. Default 0
number = 1 % Number of new lines to be inserted. Default 1 number = 1 % Number of new lines to be inserted. Default 1
end end
methods (Access = ?section) methods
function o = vspace(varargin) function o = vspace(varargin)
%function o = vspace(varargin) %function o = vspace(varargin)
% Vspace Class Constructor % Vspace Class Constructor
...@@ -70,7 +70,7 @@ classdef vspace < handle ...@@ -70,7 +70,7 @@ classdef vspace < handle
assert(isint(o.hline), '@vspace.vspace: hline must be an integer'); assert(isint(o.hline), '@vspace.vspace: hline must be an integer');
end end
end end
methods (Access = ?section, Hidden = true) methods (Hidden = true)
% Methods defined in separate files % Methods defined in separate files
write(o, fid); write(o, fid);
end end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment