Declaration: MIDI.h
Taxonomy Categories:
Member Functions:
Interface Category:
API.
Inherits From:
TMediaType
Inherited By:
None.
Purpose:
Defines the basic MIDI type for type negotiation between players and other components, sequences, and ports.
Instantiation:
Allocate on the heap or the stack.
Deriving Classes:
Override to provide types for other formats of MIDI data.
Concurrency:
Not multithread safe.
Resource Use:
No special requirements.
- TMIDIType ()
- TMIDIType (const TMIDIType &)
- TMIDIType (const TToken &)
Interface Category:
API.
Purpose:
- Default constructor.
- Copy constructor.
- Protected constructor.
Calling Context:
- Called by the stream-in operators and directly.
- Call this function directly.
- Called by derived classes to initialize.
Parameters:
- Takes no parameters.
- const TMIDIType & -The object to copy.
- const TToken & -The initial value.
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TMIDIType::operator=
TMIDIType & operator =(const TMIDIType &)
Interface Category:
API.
Purpose:
Assignment operator.
Calling Context:
Call this function directly.
Parameters:
- const TMIDIType & -The source object for the assignment.
Return Value:
A non-const reference to the left-hand side object.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
virtual ~ TMIDIType ()
Interface Category:
API.
Purpose:
Destructor.
Calling Context:
Call this function directly.
Parameters:
Return Value:
None.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TMIDIType::GetMIDIType
static const TMIDIType & GetMIDIType ()
Interface Category:
API.
Purpose:
Defines a constant value for the basic MIDI type.
Calling Context:
Call this function directly.
Parameters:
Return Value:
The TToken object containing the type.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TMIDIType::operator<<=
virtual TStream & operator <<= (TStream & fromWhere)
Interface Category:
API.
Purpose:
Stream-in operator.
Calling Context:
Call this function directly.
Parameters:
- TStream & fromWhere -The stream the object streams itself in from.
Return Value:
Returns a reference to the stream the object streams itself in from.
Exceptions:
Throws TInvalidVersionError if the versions don't match.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TMIDIType::operator>>=
virtual TStream & operator >>=(TStream & toWhere) const
Interface Category:
API.
Purpose:
Stream-out operator.
Calling Context:
Call this function directly.
Parameters:
- TStream & toWhere -The stream the object streams itself out to.
Return Value:
Returns a reference to the stream the object streams itself out to.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Member Function: TMIDIType::GetDataType
TToken GetDataType () const
Interface Category:
API.
Purpose:
Returns a TToken that identifies the media type with a unique name.
Calling Context:
Call this function directly.
Parameters:
Return Value:
A TToken representing the type.
Exceptions:
Throws no exceptions, passes all exceptions through.
Concurrency:
Multithread safe.
Other Considerations:
None.
Click the icon to mail questions or corrections about this material to Taligent personnel.
Copyright©1995 Taligent,Inc. All rights reserved.