summaryrefslogtreecommitdiff
path: root/comm/OLD/reqgen.cc
blob: 5ec4896da3014deb531adec30877b650b78197b9 (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
30
31
32
33
34
35
36
37
/*
 *	The Unix Channel
 *
 *	by Michel Beaudouin-Lafon
 *
 *	Copyright 1993-1994
 *	Centre d'Etudes de la Navigation Aerienne (CENA)
 *
 *	Request management, by Stephane Chatty
 *
 *	$Id$
 *	$CurLog$
 */

#include "ReqMgr.h"
#include <stdio.h>

static void
usage ()
{
	fprintf (stderr, "usage: reqgen file\n");
}

main (int argc, const char** argv)
{
	if (argc !=2) {
		usage ();
		return 1;
	}
	UchMsgMgr r;
	r.Read (argv [1]);
	r.DumpClientHeader ();
	r.DumpServerHeader ();
	r.DumpClientSource ("cc");
	r.DumpServerSource ("cc");
	return 0;
}