node.h

来自「赫赫大名的 OGRE 游戏引擎」· C头文件 代码 · 共 37 行

H
37
字号
#ifndef VRMLLIB_NODE_H
#define VRMLLIB_NODE_H

#include <iostream>
#include <string>

#include <vrmllib/types.h>

namespace vrmllib {

class file;
class node;
class grouping_node;

namespace bits {
	void parse_value(node *&, std::istream &, file &);
} // namespace bits

class node {
	friend class file;
	static node *parse_node(std::istream &, file &, const std::string &type);
	static node *parse_node_xdef(std::istream &, file &, const std::string &firstWord);
	static node *create_node(const std::string &type);
protected:
	virtual void parse_attribute(const std::string &name, std::istream &,
		file &);
	friend void bits::parse_value(node *&, std::istream &, file &);
public:
	virtual ~node() = 0;

	grouping_node *parent;
};

} // namespace vrmllib

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?