2015-02-26 15:02:31 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdlib.h>
|
2015-06-01 15:28:29 +00:00
|
|
|
#include "trick/RefParseContext.hh"
|
2015-02-26 15:02:31 +00:00
|
|
|
|
2016-11-08 09:25:07 +00:00
|
|
|
/**
|
|
|
|
Constructor
|
2015-02-26 15:02:31 +00:00
|
|
|
*/ RefParseContext::RefParseContext( Trick::MemoryManager *in_mem_mgr, std::istream* in_is = &std::cin ) {
|
|
|
|
|
|
|
|
// Set verif input and echo input flags.
|
|
|
|
verify_input = 0;
|
|
|
|
echo_input = 1;
|
|
|
|
|
|
|
|
// Initialize the scanner
|
|
|
|
init_scanner();
|
|
|
|
|
|
|
|
this->is = in_is;
|
|
|
|
this->mem_mgr = in_mem_mgr;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2016-11-08 09:25:07 +00:00
|
|
|
/**
|
|
|
|
Destructor
|
2015-02-26 15:02:31 +00:00
|
|
|
*/
|
|
|
|
RefParseContext::~RefParseContext() {
|
|
|
|
destroy_scanner();
|
|
|
|
}
|
|
|
|
|