main.cpp #1

  • //
  • guest/
  • sam_stafford/
  • deepannotate/
  • main.cpp
  • View
  • Commits
  • Open Download .zip Download (569 B)
#include <clientapi.h>

#include "DeepAnnotate.h"
#include "DATextTable.h"

int main ( int argc, char** argv )
{
	ClientUser ui;
	ClientApi client;
	StrBuf msg;
	Error e;

	// client.SetProtocol( "tag", "" );

	// Connect to server

	client.Init( &e );

	if( e.Test() )
	{
	    e.Fmt( &msg );
	    fprintf( stderr, "%s\n", msg.Text() );
	    return 1;
	}

	DeepAnnotate DA;
	argc--;
	argv++;
	
	DA.Run( &client, &ui, argc, argv );

	client.Final( &e );

	if( e.Test() )
	{
	    e.Fmt( &msg );
	    fprintf( stderr, "%s\n", msg.Text() );
	    return 1;
	}

	return 0;
}
# Change User Description Committed
#1 6297 Sam Stafford Work so far on "deep annotate".
 Been getting a lot of questions on
this lately from other people working on the same thing; might as well
pool efforts.