1. What's this?
===============

Gmet is generic metadate tools.

Gmet consists of 2 parts, parser and processor.

Parser parses .mt file which defines specific metadata
format, and creates C++ code which parse metadata
corresponding to the format.

Processor processes or prints metadata which was
parsed by C++ parser.

2. Licence
==========

BSD Licence.

3. Requirements
===============

perl CPAN module
  Parse::RecDescent

4. Usage
========

* Prepare .mt file
	Refer ./MT_GRAMMAR.

* Input .mt file to Parser
	Exec command.
	  $gmet XXX.mt
	This command output XXX.cpp and XXX.h.

* Create your C++ main() on new file
	Create new C++ file.
	This file must include "XXX.h",
	and create main() which process metadata.

	How to Process metadate
	-----------------------
		/* open metadata as binary */
		FILE *in = fopen("YYY", "rb");
		/* create BitStreamer instance */
		MT_BitStreamer bs(in);
		/* create metadata processor instance.
		   refer XXX.h                        */
		MT_Root_XXX root;
		/* parse metadata */
		root.read(bs);
		/* print parsed metadata */
		FILE *out = fopen("ZZZ", "w");
		root.print(out);

* Compile and link
	You already used libgmet.
	  $g++ XXX.cpp <your cpp> -lgmet -o <out file>

* Process metadata corresponding to .mt

5. AUTHOR
=========

	Tetsuya Yasuda <tetsuyayasuda@usrs.sourceforge.jp>
