BAPS/include/BAPBase.h

00001 /******************************************************************
00002  *
00003  * Filename    : BAPBase.h
00004  * Author      : David Ong Tat-Wee
00005  *
00006  * Version     : 1.0b
00007  * Date        : 11 Feb 98
00008  *
00009  * Description : Interface file for generic BAP base class.  All objects
00010  *               of BAP domain inherit from this class.
00011  *
00012  * Reference   : nil
00013  *
00014  * Notes       : nil
00015  *
00016  * Changes     : nil
00017  *
00018  * Copyright   : Copyright (c) 1998
00019  *               All rights reserved by
00020  *               Resource Allocation and Scheduling Group
00021  *               Department of Information Systems and Computer Science
00022  *               National University of Singapore
00023  *
00024  ******************************************************************/
00025 
00026 
00027 #ifndef __BAP_BASE__
00028 #define __BAP_BASE__
00029 
00030 
00031 #include "def.h"
00032 
00033 class BAPBase
00034 {
00035 public:
00036    BAPBase();
00037    BAPBase(long aID, string aName = "Nameless");
00038    ~BAPBase();
00039 
00040    long           ID() const;
00041    string         Name() const;
00042    string         Name(string aName);
00043    virtual void   Print(int aWidth = 1, int aDetail = 0) const = 0;
00044 
00045 private:
00046    const long  mID;
00047    string      mName;
00048 };
00049 
00050 
00051 #endif

Generated on Tue Sep 9 15:40:10 2008 for BAP by  doxygen 1.5.3