Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/dvi/model.cc
blob: 154352e6579b77e1ac1cb5834ea2c64ba0c57e2b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#include "model.hh"

Model::Model (string file_name) 
{
    try {
	FileLoader *fl = new FileLoader (file_name);
	dvi_file = new DviFile (*fl);
	state = HAS_FILE;
    }
    catch (string e) {
	dvi_file = 0;
	state = ERROR;
	err_msg = e;
	cout << "error" << endl;
    }
}

Model::Model (void) 
{
    state = NO_FILE;
    dvi_file = 0;
}