home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
som30tk.zip
/
som30os2.zip
/
include
/
somsid.idl
< prev
next >
Wrap
Text File
|
1996-12-24
|
2KB
|
82 lines
//
// COMPONENT_NAME: somu
//
// ORIGINS: 27
//
//
// 25H7912 (C) COPYRIGHT International Business Machines Corp. 1992,1996,1996
// All Rights Reserved
// Licensed Materials - Property of IBM
// US Government Users Restricted Rights - Use, duplication or
// disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
//
//# @(#) 2.10 src/somu/somsid.idl, somu, som3.0 12/26/95 15:30:24 [12/24/96 07:41:16]
#ifndef somsid_idl
#define somsid_idl
#include <somida.idl>
interface SOMUTStringId : SOMUTId
// This is the abstract base class for an ASCIIZ string (an ASCII string
// terminated with a zero) based ID. Refer to derived classes for details.
//
// Intances of classes derived from this one should represent a string
// value which can be used to identify something... such as an object,
// a file, a network node, etc, etc...
//
{
long somutSetIdString(in string IdString);
// Sets the ID to the given string.
// Returns nonzero error code if given IdString is not syntactically correct.
string somutGetIdString(in string toBuffer);
// Stores the ID as a string into the given buffer <toBuffer> and
// returns the buffer <toBuffer>.
// Use somutGetIdStringLen to determine appropriate <toBuffer> size.
long somutGetIdStringLen();
// Returns the length of the ID string.
boolean somutEqualsString(in string IdString);
// Checks to see if this object's ID is equivalent to the given string.
// Returns TRUE if the ID is equivalent to the string, FALSE otherwise.
short somutCompareString(in string IdString);
// Performs an ordered comparison with the given string.
// If this ID < IdString -1 is returned.
// If this ID = IdString 0 is returned.
// If this ID > IdString 1 is returned.
#ifdef __SOMIDL__
implementation
{
callstyle = idl;
releaseorder: somutSetIdString, somutGetIdString, somutGetIdStringLen,
somutEqualsString, somutCompareString;
majorversion = 2;
minorversion = 1;
filestem = somsid;
dllname = "somu.dll";
//# Method Modifiers
somutSetIdId: override;
somutEqualsId: override;
somutCompareId: override;
somutHashId: override;
};
#endif /* __SOMIDL__ */
};
#endif /* somsid_idl */