VR-Link API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Create FOM Map

createFomMap.cxx is the entry point for the DLL.

It contains definitions for the functions that are required by VR-Link if you are creating a FOM Mapper shared library. When you pass the name of a shared library to a DtExerciseConn constructor, it opens the shared library and looks for the functions DtCreateFomMapper() and DtDeleteFomMapper(). Here, DtCreateFomMapper() just returns a new instance of our MyFomMapper class. These two functions must have C linkage, so we enclose their definitions within extern "C" {}.


/*********************************************************************
** Copyright (c) 1997 MaK Technologies, Inc.
** All rights reserved.
*********************************************************************/
#include "myFomMap.h"
extern "C"
{
DT_DLL_FOMMAP DtFomMapper* DtCreateFomMapper(void* usr)
{
return new MyFomMapper();
}
DT_DLL_FOMMAP void DtDeleteFomMapper(DtFomMapper* mapper)
{
delete mapper;
}
}

Document ID: Generated on Mon Feb 6 18:36:34 EST 2017 from SVN revision 173107
Copyright © 2005-2016 VT MÄK. All Rights Reserved (www.mak.com)