A PtWatchSpec is a Watch specification; that is, it contains the parameters used to specify a Watch. All methods that set watches or free watches take a PtWatchSpec as a parameter.
Please see the chapter "Event Handling" for a complete set of the methods which use a PtWatchSpec and for examples of setting and freeing watches. Watch modes, depth modes, and method references are also discussed in the chapter "Event Handling."
Files to include | Class declaration | Base class |
poet.hxx | ptmode.hxx | none |
constructor | PtWatchSpec(); |
destructor | ~PtWatchSpec(); |
Decode | void Decode(PtWatchEncode); |
DeepMode | inline PtDepthMode& DeepMode(); |
Encode | int Encode(PtWatchEncode& ); |
Mode | inline PtWatchMode& Mode(); |
OriginId | inline unsigned long & OriginId(); |
Target | inline PtMethodRef& Target(); |
operator = | PtWatchSpec& operator = (PtWatchSpec& ); |
operator != | int operator != (PtWatchSpec& ); |
- PtWatchSpec::PtWatchSpec() PtWatchSpec::PtWatchSpec(PtWatchSpec&) PtWatchSpec::PtWatchSpec(PtWatchMode,PtDepthMode) PtWatchSpec::PtWatchSpec(PtWatchMode,PtDepthMode,PtMethodRef&)
Constructors. The WatchSpec created contains the information specified by the parameters. If no parameters are specified then the WatchSpec specifies nothing.
- PtWatchSpec::~PtWatchSpec()
- int PtWatchSpec::Decode(PtWatchEncode)
This is an internal function which is used by POET. Do not use it in your programs.
- PtDepthMode& PtWatchSpec::DeepMode()
Returns the depth mode for the PtWatchSpec.
- int PtWatchSpec::Encode(PtWatchEncode& )
This is an internal function which is used by POET. Do not use it in your programs.
- PtWatchMode& PtWatchSpec::Mode()
Returns the watch mode for the PtWatchSpec.
- PtDepthMode& PtWatchSpec::Decode()
This is an internal function which is used by POET. Do not use it in your programs.
- inline unsigned long& PtWatchSpec::OriginId()
This is an internal function which is used by POET. Do not use it in your programs.
- PtMethodRef& PtWatchSpec::Target()
Returns the method reference for the PtWatchSpec.
- PtWatchSpec& PtWatchSpec::operator = (PtWatchSpec& )
PtWatchSpec& PtWatchSpec::operator = (PtWatchMode mode)
PtWatchSpec& PtWatchSpec::operator = (PtDepthMode deep)
PtWatchSpec& PtWatchSpec::operator = (PtMethodRef& )
Each of these is described separately below.
- PtWatchSpec& PtWatchSpec::operator = (PtWatchSpec& )
Assignment operator. Copies one PtWatchSpec to another.
- PtWatchSpec WatchSpec = AnotherWatchSpec;
- PtWatchSpec& PtWatchSpec::operator = (PtWatchMode mode)
Assignment operator. Sets the watch mode for a PtWatchSpec.
- PtWatchSpec WatchSpec = WatchMode;
- PtWatchSpec& PtWatchSpec::operator = (PtDepthMode deep)
Assignment operator. Sets the depth mode for a PtWatchSpec.
- PtWatchSpec WatchSpec = DepthMode;
- PtWatchSpec& PtWatchSpec::operator = (PtMethodRef& )
Assignment operator. Sets the method reference for a PtWatchSpec.
- PtWatchSpec WatchSpec = MethodRef;
- int PtWatchSpec::operator != (PtWatchSpec& )
Comparison operator. Determines if two WatchSpecs are the same. int cmp = FirstWatchSpec != SecondWatchSpec;
<0 FirstWatchSpec < SecondWatchSpec 0 FirstWatchSpec == SecondWatchSpec >0 FirstWatchSpec > SecondWatchSpec
Copyright (c) 1996 POET Software, Inc. All rights reserved. Reproduction in whole or in part in any form or medium without the express permission of POET Software, Inc. is prohibited.