Archival snapshot of the Virtual World Entertainment Tesla cockpit software, 1994-1996: MUNGA engine and L4 pod layer source (Borland C++ 5.0), BT/RP game code, and game content (models, audio, maps, gauges, Division renderer data). Includes third-party libraries: Division dVS/DPL graphics, HMI SOS audio, WATTCP networking. Files are preserved byte-for-byte (.gitattributes disables all line-ending conversion). README.md documents the layout, target hardware, and toolchain. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
89 lines
2.4 KiB
C++
89 lines
2.4 KiB
C++
//===========================================================================//
|
|
// File: srtskt.hh //
|
|
// Project: MUNGA Brick: Connection Engine //
|
|
// Contents: Interface definition for sorted socket class //
|
|
//---------------------------------------------------------------------------//
|
|
// Date Who Modification //
|
|
// -------- --- ---------------------------------------------------------- //
|
|
// 11/02/94 ECH Initial coding. //
|
|
// 11/03/94 ECH Made compatible with BC4.0 //
|
|
// 11/05/94 JMA Made compatible with GNU C++ //
|
|
// 12/12/94 ECH Changed release handling //
|
|
//---------------------------------------------------------------------------//
|
|
// Copyright (C) 1994-1995, Virtual World Entertainment, Inc. //
|
|
// PROPRIETARY AND CONFIDENTIAL //
|
|
//===========================================================================//
|
|
|
|
#if !defined(SRTSKT_HPP)
|
|
# define SRTSKT_HPP
|
|
|
|
# if !defined(SFESKT_HPP)
|
|
# include <sfeskt.hpp>
|
|
# endif
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~ SortedSocket ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class SortedSocket:
|
|
public SafeSocket
|
|
{
|
|
public:
|
|
~SortedSocket();
|
|
|
|
void
|
|
AddValuePlug(
|
|
Plug *plug,
|
|
const void *value
|
|
)
|
|
{AddValueImplementation(plug, value);}
|
|
|
|
Plug*
|
|
FindPlug(const void *value)
|
|
{return FindImplementation(value);}
|
|
|
|
protected:
|
|
SortedSocket(
|
|
Logical has_unique_entries = True
|
|
);
|
|
SortedSocket(
|
|
Node *node,
|
|
Logical has_unique_entries = True
|
|
);
|
|
|
|
Logical
|
|
HasUniqueEntries()
|
|
{return hasUniqueEntries;}
|
|
|
|
virtual void
|
|
AddValueImplementation(
|
|
Plug *plug,
|
|
const void *value
|
|
);
|
|
|
|
virtual Plug*
|
|
FindImplementation(const void *value);
|
|
|
|
private:
|
|
Logical
|
|
hasUniqueEntries;
|
|
};
|
|
|
|
//~~~~~~~~~~~~~~~~~~~~~~~~~~~ SortedIterator ~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
class SortedIterator:
|
|
public SafeIterator
|
|
{
|
|
public:
|
|
~SortedIterator();
|
|
|
|
virtual Plug*
|
|
FindImplementation(const void *value);
|
|
|
|
virtual void*
|
|
GetValueImplementation();
|
|
|
|
protected:
|
|
SortedIterator(SortedSocket *sortedSocket);
|
|
};
|
|
|
|
#endif
|