1 #include "dl-dvi-program.hh"
4 using namespace DviLib;
6 typedef vector<DviCommand *>::iterator It;
9 DviProgram::execute (DviRuntime& runtime)
11 for (It i = commands.begin(); i != commands.end(); ++i)
13 (*i)->execute (runtime);
18 DviProgram::add_command (DviCommand *cmd)
21 commands.push_back (cmd);
24 DviProgram::~DviProgram (void)
26 for (It i = commands.begin(); i != commands.end(); ++i)