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
o.data = '';
end
end
methods (Access = ?section, Hidden = true)
methods (Hidden = true)
o = addSeries(o, varargin)
write(o, fid, pg, sec, row, col, rep_dir)
end
......
......@@ -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.
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
methods (Access = ?report)
methods
function o = page(varargin)
%function o = page(varargin)
% Page Class Constructor
......@@ -113,7 +113,7 @@ classdef page < handle
'@page.page: sections is not a valid option');
end
end
methods (Access = ?report, Hidden = true)
methods (Hidden = true)
o = addSection(o, varargin)
o = addVspace(o, varargin)
o = addTable(o, varargin)
......
......@@ -75,7 +75,7 @@ classdef paragraph < handle
assert(ischar(o.heading), '@paragraph.paragraph: heading must be a string');
end
end
methods (Access = ?section, Hidden = true)
methods (Hidden = true)
% Methods defined in separate files
write(o, fid);
end
......
......@@ -71,7 +71,7 @@ classdef report_data < handle
end
end
end
methods (Access = ?report_table, Hidden = true)
methods (Hidden = true)
writeDataForTable(o, fid, precision)
end
end
......@@ -98,14 +98,14 @@ classdef report_series < handle
end
end
end
methods (Access = ?graph, Hidden = true)
methods (Hidden = true)
s = getNameForLegend(o)
writeSeriesForGraph(o, fid, xrange, series_num)
end
methods (Access = ?report_table, Hidden = true)
methods (Hidden = true)
writeSeriesForTable(o, fid, dates, precision, ncols, rowcolor)
end
methods (Access = {?graph,?report_table}, Hidden = true)
methods (Hidden = true)
tf = isZero(o)
end
methods (Access = private)
......
......@@ -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.
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
methods (Access = ?section)
methods
function o = report_table(varargin)
%function o = report_table(varargin)
% Report_Table Class Constructor
......@@ -150,7 +150,7 @@ classdef report_table < handle
o.seriesToUse = '';
end
end
methods (Access = ?section, Hidden = true)
methods (Hidden = true)
o = addData(o, varargin)
o = addSeries(o, varargin)
write(o, fid, pg, sec, row, col, rep_dir)
......
......@@ -24,7 +24,7 @@ classdef section < handle
cols = 1 % The number of columns in the section. Default: 1.
height = '' % A string to be used with the \sectionheight LATEX command. Default: '!'
end
methods (Access = ?page)
methods
function o = section(varargin)
%function o = section(varargin)
% Section Class Constructor
......@@ -74,7 +74,7 @@ classdef section < handle
'@section.section: cols must be a string');
end
end
methods (Access = ?page, Hidden = true)
methods (Hidden = true)
o = addGraph(o, varargin)
o = addParagraph(o, varargin)
o = addTable(o, varargin)
......
......@@ -21,7 +21,7 @@ classdef vspace < handle
hline = 0 % Number of horizontal lines to be inserted. Default 0
number = 1 % Number of new lines to be inserted. Default 1
end
methods (Access = ?section)
methods
function o = vspace(varargin)
%function o = vspace(varargin)
% Vspace Class Constructor
......@@ -70,7 +70,7 @@ classdef vspace < handle
assert(isint(o.hline), '@vspace.vspace: hline must be an integer');
end
end
methods (Access = ?section, Hidden = true)
methods (Hidden = true)
% Methods defined in separate files
write(o, fid);
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