aboutsummaryrefslogtreecommitdiff
path: root/tool_src/QvLib/QvDb.cpp
blob: 6d4ddf7073f3a03f5da184e581d6467a96af311d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <QvDB.h>
#include <QvInput.h>
#include <QvReadError.h>
#include <QvNode.h>

const char *QvDB::versionString = "Reference VRML Parser 1.0";

void
QvDB::init()
{
    QvNode::init();
}

QvBool
QvDB::read(QvInput *in, QvNode *&node)
{
    QvBool ret;

    ret = QvNode::read(in, node);

    if (ret && node == NULL && ! in->eof()) {
	char	c;
	in->get(c);
	QvReadError::post(in, "Extra characters ('%c') found in input", c);
	ret = FALSE;
    }

    return ret;
}