Listing 2: Header file for minimal prototype V application
//===============================================================
// drawapp.h:
// Copyright (C) 1995 Bruce E. Wampler
/================================================================
#ifndef DRAWAPP_H #define DRAWAPP_H
#include <v/include/vapp.h>
#include <v/include/vawinfo.h> // for app info
#include "drawcmdw.h" // we user our cmdwin class
class drawApp : public vApp
{
friend int AppMain(int, char**); // allow AppMain access
public: //--------------------------------- public
drawApp(char* name) : vApp(name) {} // just call vApp
virtual ~drawApp() {}
// Routines from vApp that are normally overridden
virtual vWindow* NewAppWin(vWindow* win, char* name, int h,
int w, vAppWinInfo* winInfo);
virtual void Exit(void);
virtual void CloseAppWin(vWindow*);
protected: //------------------------------ protected
private: //-------------------------------- private
};
#endif
/* End of File */