MAK Legion API Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Macros | Functions | Variables
transfer.cxx File Reference

Macros

#define CLEAR_LINE   "\r \r"
 

Functions

std::string thePrivateData ("Test Private Data")
 
void parseArgs (int argc, char **argv)
 Forward declare functions. More...
 
void setMinMaxBoundary (int minX, int minY, int maxX, int maxY)
 
void takeShutDownHandler ()
 
void checkConsoleCommands ()
 
void createEntity (UInt32 entityNumber)
 
void destroyEntity ()
 
void requestOwnership ()
 
void doDivest (Legion::TransactionIdentifier transactionId)
 
void doReject (Legion::TransactionIdentifier transactionId)
 
void processOwnershipDivestitureRequest (Legion::TransactionIdentifier transactionId, Legion::Span< Legion::GlobalIdentifier > globalIds, Legion::Span< char > privateData)
 
void processOwnershipAcquisitionRejected (Legion::TransactionIdentifier transactionId, Legion::Span< Legion::GlobalIdentifier > globalIds, Legion::Span< char > privateData)
 
void processOwnershipAcquired (Legion::TransactionIdentifier transactionId, Legion::Span< Legion::GlobalIdentifier > globalIds, Legion::Span< char > privateData)
 
const char * testPrivateData (Legion::Span< char > privateData)
 
int main (int argc, char *argv[])
 
double nextRand (int maxRange)
 
DtVector coerce (const Legion::Vector3d &v)
 
Legion::Vector3d coerce (const DtVector &v)
 

Variables

std::string theConfigFile = "legionExamples.lua"
 
Legion::ConfigurationtheConfiguration = nullptr
 
Legion::SimulationDatabasetheSimDb = nullptr
 
Legion::ConnectiontheConnection = nullptr
 
Legion::BoundarySpatialPlanar theBounds
 
Legion::ViewManagertheViewManager = nullptr
 
Legion::OwnershipManagertheOwnershipManager = nullptr
 
Legion::ObjectType theTransferObjectType (3, 1, 225, 3, 0, 1, 0)
 
LOM::EntityTypeView * theRemoteEntities = nullptr
 
LOM::WriteEntityRepository theOwnEntity
 
Legion::TransactionIdentifier theOwnershipTransactionId = 0
 
Legion::GlobalIdentifier theOwnershipTransactionInstance = 0
 
MAK::DtCommandParser theCommandInput
 
double theFrameRate = 10
 
int MAX_GRID = 1000
 
bool theDoCreateEntity = false
 
bool theDoDestroy = false
 
bool theDoRequestAcquisition = false
 
bool theDoDivestEntity = false
 
bool theDoRejectRequest = false
 
bool theAutoDivest = false
 
int theAvailableCount = 0
 
float theReferenceLatitude = 0.0
 
float theReferenceLongitude = 0.0
 

Macro Definition Documentation

#define CLEAR_LINE   "\r \r"

Referenced by createEntity(), doDivest(), doReject(), and main().

Function Documentation

void checkConsoleCommands ( )
DtVector coerce ( const Legion::Vector3d v)
inline
Legion::Vector3d coerce ( const DtVector &  v)
inline
void createEntity ( UInt32  entityNumber)
void destroyEntity ( )
void doDivest ( Legion::TransactionIdentifier  transactionId)
void doReject ( Legion::TransactionIdentifier  transactionId)
int main ( int  argc,
char *  argv[] 
)
double nextRand ( int  maxRange)

Referenced by createEntity().

void parseArgs ( int  argc,
char **  argv 
)

Forward declare functions.

void processOwnershipAcquired ( Legion::TransactionIdentifier  transactionId,
Legion::Span< Legion::GlobalIdentifier globalIds,
Legion::Span< char >  privateData 
)
void processOwnershipAcquisitionRejected ( Legion::TransactionIdentifier  transactionId,
Legion::Span< Legion::GlobalIdentifier globalIds,
Legion::Span< char >  privateData 
)
void processOwnershipDivestitureRequest ( Legion::TransactionIdentifier  transactionId,
Legion::Span< Legion::GlobalIdentifier globalIds,
Legion::Span< char >  privateData 
)
void requestOwnership ( )
void setMinMaxBoundary ( int  minX,
int  minY,
int  maxX,
int  maxY 
)
void takeShutDownHandler ( )
const char * testPrivateData ( Legion::Span< char >  privateData)
std::string thePrivateData ( "Test Private Data"  )

Referenced by doDivest(), and testPrivateData().

Variable Documentation

int MAX_GRID = 1000
bool theAutoDivest = false
int theAvailableCount = 0

Referenced by main().

MAK::DtCommandParser theCommandInput
std::string theConfigFile = "legionExamples.lua"
Legion::Configuration* theConfiguration = nullptr
Legion::Connection* theConnection = nullptr
bool theDoCreateEntity = false

Referenced by main().

bool theDoDestroy = false

Referenced by main().

bool theDoDivestEntity = false

Referenced by main().

bool theDoRejectRequest = false

Referenced by main().

bool theDoRequestAcquisition = false
double theFrameRate = 10
LOM::WriteEntityRepository theOwnEntity

Referenced by createEntity(), doDivest(), and main().

Legion::OwnershipManager* theOwnershipManager = nullptr
Legion::TransactionIdentifier theOwnershipTransactionId = 0
Legion::GlobalIdentifier theOwnershipTransactionInstance = 0
float theReferenceLatitude = 0.0

Referenced by createEntity(), and main().

float theReferenceLongitude = 0.0

Referenced by createEntity(), and main().

LOM::EntityTypeView* theRemoteEntities = nullptr

Referenced by main().

Legion::SimulationDatabase* theSimDb = nullptr
Legion::ObjectType theTransferObjectType(3, 1, 225, 3, 0, 1, 0)
Legion::ViewManager* theViewManager = nullptr

Document ID: Generated on Mon Mar 8 15:11:30 EST 2021 from SVN revision 225633
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)