Exemple #1
0
GmlParser::GmlParser(istream &is, bool doCheck)
{
	createObjectTree(is,doCheck);

	int minId, maxId;
	m_graphObject = getNodeIdRange(minId, maxId);
	m_mapToNode.init(minId,maxId,0);
}
Exemple #2
0
void GmlParser::doInit(istream &is, bool doCheck)
{
	m_objectTree = nullptr;

	if (!is) {
		setError("Cannot open file.");
		return;
	}

	createObjectTree(is,doCheck);

	int minId, maxId;
	m_graphObject = getNodeIdRange(minId, maxId);
	if (!m_graphObject) {
		setError("Cannot open file.");
		return;
	}
	m_mapToNode.init(minId,maxId,nullptr);
}