home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
VSCPPv8.zip
/
VACPP
/
IBMCPP
/
samples
/
VISBUILD
/
RAPSHEET
/
CPPOV23
/
IALIAS.HPP
< prev
next >
Wrap
Text File
|
1995-05-12
|
4KB
|
91 lines
#ifndef _IALIAS_
#define _IALIAS_
//****************************************************************************
// IAlias Class - C++ Header File (ialias.hpp) *
// *
// COPYRIGHT: Copyright (C) International Business Machines Corp., 1994,1995 *
// *
// DISCLAIMER OF WARRANTIES: *
// The following [enclosed] code is sample code created by IBM *
// Corporation. This sample code is not part of any standard IBM product *
// and is provided to you solely for the purpose of assisting you in the *
// development of your applications. The code is provided "AS IS", *
// without warranty of any kind. IBM shall not be liable for any damages *
// arising out of your use of the sample code, even if they have been *
// advised of the possibility of such damages. *
//****************************************************************************
//NOTE: WE RECOMMEND USING A FIXED-SPACE FONT TO LOOK AT THE SOURCE.
//
#include <istdntfy.hpp> //Parent of IStandardNotifier
#include <istring.hpp>
//Forward class references
//**************************************************************************
// Class: IAlias
//
// Purpose: Describes IAlias Class.
// This class defines Alias objects for use in applications such as the
// Police Rap Sheet.
// These objects hold and manage all the data relevant to a person's alias.
//
//**************************************************************************
class _Export IAlias : public IStandardNotifier
{
public:
/*--------------------- CONSTRUCTORS/DESTRUCTORS ----------------
*-----------------------------------------------------------------*/
IAlias();
virtual ~IAlias();
/*--------------------- NOTIFICATION EVENTS ----------------------
| These INotificationId strings are used for all notifications that
| this class provides to its observers:
| -aliasId Notification identifier provided to
| observers when the alias attribute changes.
*-----------------------------------------------------------------*/
static INotificationId aliasId;
/*--------------------- ATTRIBUTES -------------------------------
| The following members are for accessing the attributes of this class:
| -alias Returns the alias attribute.
| -setAlias Sets the alias attribute.
*-----------------------------------------------------------------*/
virtual IString
alias() const;
virtual IAlias &
setAlias(const IString & aAlias);
/*--------------------- ACTIONS ---------------------------------
| asString Formatted string for listbox and debugging output.
*-----------------------------------------------------------------*/
virtual IString
asString() const;
/*--------------------- OPERATORS -------------------------------
*-----------------------------------------------------------------*/
Boolean
operator ==(const IAlias & value) const;
operator ==(const IAlias * value) const;
operator !=(const IAlias & value) const;
operator !=(const IAlias * value) const;
protected:
private:
/*--------------------- PRIVATE MEMBER DATA ---------------------
*-----------------------------------------------------------------*/
IString dAlias;
}; //IAlias
#endif