[Next] [Prev] [Top]

No Title

Appendix A - Standard Class Format


// ============================================================================

//

// INTERFACE

#ifndef TTEMPLATE_H

#define TTEMPLATE_H

// VersionId: $Id$

/*

static const char copyright[] =

"Copyright (c) 1996, Scientific and Engineering Software , "

"Inc. All rights reserved worldwide. This program or documentation "

"is supplied pursuant to and its use is governed by a license "

"agreement from Scientific and Engineering Software , Inc. and "

"contains confidential information of Scientific and Engineering "

"Software , Inc. Disclosure and copying are subject to "

"restrictions contained in such agreement and any subsidiary "

"agreement.";

*/

/*

PURPOSE

*/

// ----------------------------------------------------------------------------

//

// C o n s t a n t s

// T y p e s

// G l o b a l V a r i a b l e s

// P u b l i c P r o t o t y p e s

// P r i v a t e P r o t o t y p e s

//

// ----------------------------------------------------------------------------

//---------------------------------------------------------------------------

//

// _THIS_CLASS_

//

//---------------------------------------------------------------------------

//

//

//

//

//

class _THIS_CLASS_ : public CParentClass

{

CLASS (_THIS_CLASS_, CParentClass );

private:

// don't let the compiler automatically define these

_THIS_CLASS_();

_THIS_CLASS_( const _THIS_CLASS_& );

const _THIS_CLASS_& operator = (const _THIS_CLASS_&);

// most classes have a virtual destructor

virtual ~_THIS_CLASS_();

protected:

public:

}; // _THIS_CLASS_

#endif

// ============================================================================

//

// IMPLEMENTATION

static const char* const VersionId = "$Id$" or "$Header: $;

#ifdef COPYRIGHT

static const char copyright[] =

"Copyright (c) 1996, Scientific and Engineering Software , "

"Inc. All rights reserved worldwide. This program or documentation "

"is supplied pursuant to and its use is governed by a license "

"agreement from Scientific and Engineering Software , Inc. and "

"contains confidential information of Scientific and Engineering "

"Software , Inc. Disclosure and copying are subject to "

"restrictions contained in such agreement and any subsidiary "

"agreement.";

#endif

// ----------------------------------------------------------------------------

//

// G l o b a l V a r i a b l e s

// P u b l i c F u n c t i o n s

// P r i v a t e F u n c t i o n s

// ----------------------------------------------------------------------------

//--------------------------------------------------------------------------

//

// _THIS_CLASS_

//

//--------------------------------------------------------------------------

// c o n s t r u c t o r

//

_THIS_CLASS_ :: _THIS_CLASS_ ()

{

} // constructor

// d e s t r u c t o r

//

_THIS_CLASS_ :: ~_THIS_CLASS_ ()

{

} // destructor

#endif


No Title
[Next] [Prev] [Top]

Generated with CERN WebMaker

This site was grabbed using the TRIAL version of Grab-a-Site. This message does not appear on a licensed copy of Grab-a-Site.