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 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
// Copyright (C) 1995 The New York Group Theory Cooperative
// See magnus/doc/COPYRIGHT for the full notice.
//
// Contents: Declaration of class ObjectSmith
//
// Principal Author: Roger Needham
//
// Status: in progress
//
// Revision History:
//
#ifndef _OBJECTSMITH_H_
#define _OBJECTSMITH_H_
#include "Menu.h"
//---------------------------------------------------------------------------//
//---------------------------- ObjectSmith ----------------------------------//
//---------------------------------------------------------------------------//
class ObjectSmith : protected Menu
{
public:
static void outputPackagesMenuDefns(ostream& ostr);
private:
/////////////////////////////////////////////////////////////////////////
// //
// Constructors: //
// //
/////////////////////////////////////////////////////////////////////////
ObjectSmith( );
// No ctors for this static class; not to be implemented.
/////////////////////////////////////////////////////////////////////////
// //
// `Public' Members Touched by Friends: //
// //
/////////////////////////////////////////////////////////////////////////
friend class SessionManager;
friend class Menu; //@rn Hackery, so it can call registerCallBack.
static void outputCheckinMenuDefns(ostream& ostr);
static void outputToolsMenuDefns(ostream& ostr);
static void outputMakeMenuDefns(ostream& ostr);
static void outputTestingMenuDefns(ostream& ostr);
// These methods are implemented in the file "menuDefns.C".
// Used by class SessionManager.
static void readMessage(istream& istr);
// Used by class SessionManager.
/////////////////////////////////////////////////////////////////////////
// //
// Call Back Handlers: //
// //
/////////////////////////////////////////////////////////////////////////
static int registerCallBack(Ctor* ctor);
/////////////////////////////////////////////////////////////////////////
// //
// Data Members: //
// //
/////////////////////////////////////////////////////////////////////////
static int theCallBacksLen;
static Ctor** theCallBacks;
static Ctor** freeCallBack;
static const int jumpSize = 64;
};
#endif
|