reporting: add more info to stdout during processing/writing

remove-priordens
Houtan Bastani 2013-04-10 14:50:22 +02:00
parent 60ee6c08b3
commit ef7bb4f04f
11 changed files with 13 additions and 6 deletions

View File

@ -38,7 +38,6 @@ if ~o.seriesElements.numElements()
return;
end
disp('creating plot..........');
h = figure('visible','off');
hold on;
box on;

View File

@ -29,5 +29,6 @@ function o = addPage(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Page: ' num2str(numPages(o)+1)]);
o.objArray = o.objArray.addObj(page(varargin{:}));
end

View File

@ -33,6 +33,7 @@ assert(fid ~= -1);
fprintf(fid, '\n%% Pages Object\n');
nps = numPages(o);
for i=1:nps
disp(['Writing Page: ' num2str(i)]);
o.objArray(i).write(fid);
end
fprintf(fid, '%% End Pages Object\n\n');

View File

@ -72,4 +72,5 @@ status = fclose(fid);
if status == -1
error('@report.wrie: closing %s\n', o.filename);
end
end
disp('Finished Writing Report!');
end

View File

@ -30,5 +30,6 @@ function o = addGraph(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Section Element: ' num2str(numElements(o)+1)]);
o.elements = o.elements.addGraph(varargin{:});
end

View File

@ -30,5 +30,6 @@ function o = addTable(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Section Element: ' num2str(numElements(o)+1)]);
o.elements = o.elements.addTable(varargin{:});
end

View File

@ -29,5 +29,6 @@ function o = addVspace(o, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
disp(['Processing Section Element: ' num2str(numElements(o)+1)]);
o.elements = o.elements.addVspace(varargin{:});
end

View File

@ -51,6 +51,7 @@ ne = numElements(o);
nvspace = numVspace(o);
nlcounter = 0;
for i=1:ne
disp(['Writing Section Element: ' num2str(i)]);
if isa(o.elements(i), 'vspace')
assert(rem(nlcounter, o.cols) == 0, ['@section.write: must place ' ...
'vspace command after a linebreak in the table ' ...

View File

@ -1,5 +1,5 @@
function ss = addSection(ss, varargin)
% function ss = addSection(ss, varargin)
function o = addSection(o, varargin)
% function o = addSection(o, varargin)
% Copyright (C) 2013 Dynare Team
%
@ -18,5 +18,6 @@ function ss = addSection(ss, varargin)
% You should have received a copy of the GNU General Public License
% along with Dynare. If not, see <http://www.gnu.org/licenses/>.
ss.objArray = ss.objArray.addObj(section(varargin{:}));
disp(['Processing Section: ' num2str(numSections(o)+1)]);
o.objArray = o.objArray.addObj(section(varargin{:}));
end

View File

@ -33,6 +33,7 @@ assert(fid ~= -1);
fprintf(fid, '\n%% Sections Object\n');
nps = numSections(o);
for i=1:nps
disp(['Writing Section: ' num2str(i)]);
o.objArray(i).write(fid);
end
fprintf(fid, '%% End Sections Object\n\n');

View File

@ -49,7 +49,6 @@ else
end
ndates = dates.ndat;
disp('creating table.........');
fprintf(fid, '%% Table Object\n');
fprintf(fid, '\\setlength{\\tabcolsep}{4pt}\n');
fprintf(fid, '\\begin{tabular}{@{}l');