15#include "wsf_export.h"
22#include "UtScriptAccessible.hpp"
37 , mLocalTrackNumber(0)
42 : mOwningPlatformId(aOwningPlatformId)
43 , mLocalTrackNumber(aLocalTrackNumber)
47 static std::unique_ptr<UtScriptClass> CreateScriptClass(
const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
56 return ((mOwningPlatformId == aRhs.mOwningPlatformId) && (mLocalTrackNumber == aRhs.mLocalTrackNumber));
70 if (mOwningPlatformId < aRhs.mOwningPlatformId)
74 else if (mOwningPlatformId > aRhs.mOwningPlatformId)
78 return (mLocalTrackNumber < aRhs.mLocalTrackNumber);
94 bool IsNull()
const {
return mOwningPlatformId.IsNull(); }
103 mOwningPlatformId =
nullptr;
104 mLocalTrackNumber = 0;
120#if defined(_WIN32) && _MSC_VER >= 1300
121 static const size_t bucket_size = 4;
122 static const size_t min_buckets = 8;
136 aBuff& mOwningPlatformId& mLocalTrackNumber;
141 int32_t mLocalTrackNumber;
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
std::ostream & operator<<(std::ostream &aStream, const WsfTSPI &aTSPI)
Stream out operator (typically, to a file); units are converted on output.
Definition WsfTSPI.cpp:92
std::istream & operator>>(std::istream &aStream, WsfTSPI &aTSPI)
Stream in operator (typically, from a file); units are converted on input.
Definition WsfTSPI.cpp:108
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
Definition WsfTrackId.hpp:33
bool IsNull() const
Indicates whether the ID has been set to reference a platform.
Definition WsfTrackId.hpp:94
int GetLocalTrackNumber() const
Get the platform-relative local track number.
Definition WsfTrackId.hpp:88
void Null()
Invalidate the ID by zeroing out the owning platform and local track number.
Definition WsfTrackId.hpp:101
void SetLocalTrackNumber(int aLocalTrackNumber)
Set the platform-relative local track number.
Definition WsfTrackId.hpp:91
bool operator==(const WsfTrackId &aRhs) const
Definition WsfTrackId.hpp:54
void Serialize(T &aBuff)
For XIO (de)serialization.
Definition WsfTrackId.hpp:134
int IncrementLocalTrackNumber()
Definition WsfTrackId.hpp:98
bool operator()(const WsfTrackId &aLhs, const WsfTrackId &aRhs) const
Only Microsoft Developer Studio seems to require this.
Definition WsfTrackId.hpp:129
bool operator!=(const WsfTrackId &aRhs) const
Definition WsfTrackId.hpp:62
bool operator<(const WsfTrackId &aRhs) const
Definition WsfTrackId.hpp:68
void SetOwningPlatformId(WsfStringId aOwningPlatformId)
Set the owning platform ID (from WsfPlatform::GetNameId());.
Definition WsfTrackId.hpp:85
const char * GetScriptClassName() const override
Definition WsfTrackId.hpp:49
size_t operator()(const WsfTrackId &aTrackId) const
All implementations seem to require this.
Definition WsfTrackId.hpp:126
WsfStringId GetOwningPlatformId() const
Get the owning platform ID (from WsfPlatform::GetNameId());.
Definition WsfTrackId.hpp:82
WsfTrackId(WsfStringId aOwningPlatformId, int aLocalTrackNumber)
Definition WsfTrackId.hpp:41
WsfTrackId()
Definition WsfTrackId.hpp:35