home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
pstn.zip
/
zip
/
HPosition.cpp
next >
Wrap
C/C++ Source or Header
|
1995-09-07
|
3KB
|
92 lines
/*******************************************************************************
* FILE NAME: HPosition.cpp *
* *
* DESCRIPTION: *
* Class implementation of the class: *
* HPosition- Hydrografix Positionsklasse *
* ---------------------------------------------------------------------------- *
* Warning: This file was generated by the VisualAge C++ Visual Builder. *
* Modifications to this source file will be lost when the part is regenerated. *
*******************************************************************************/
#ifndef _INOTIFEV_
#include <inotifev.hpp>
#endif
#ifndef _IOBSERVR_
#include <iobservr.hpp>
#endif
#ifndef _ISTDNTFY_
#include <istdntfy.hpp>
#endif
#ifndef _HPOSITION_
#include "HPosition.hpp"
#endif
#ifndef _IVBDEFS_
#include <ivbdefs.h>
#endif
#ifndef _ITRACE_
#include <itrace.hpp>
#endif
#pragma export (HPosition::readyId)
const double ERD_RADIUS = 6371211.3;
const double PI = 3.141592654;
const double DEG2RAD = PI / 180.;
const double RAD2DEG = 180. / PI;
const INotificationId HPosition::readyId = "HPosition::readyId";
//------------------------------------------------------------------------------
// HPosition :: HPosition
//------------------------------------------------------------------------------
#pragma export (HPosition::HPosition())
HPosition::HPosition()
{
iLongitude = 0.;
iLatitude = 0.;
iRadius = ERD_RADIUS;
} //end constructor
//------------------------------------------------------------------------------
// HPosition :: ~HPosition
//------------------------------------------------------------------------------
#pragma export (HPosition::~HPosition())
HPosition::~HPosition()
{
}
//------------------------------------------------------------------------------
// HPosition :: initializePart
//------------------------------------------------------------------------------
#pragma export (HPosition::initializePart())
HPosition & HPosition::initializePart()
{
makeConnections();
notifyObservers(INotificationEvent(readyId, *this));
return *this;
}
//------------------------------------------------------------------------------
// HPosition :: makeConnections
//------------------------------------------------------------------------------
#pragma export (HPosition::makeConnections())
Boolean HPosition::makeConnections()
{
this->enableNotification();
return true;
}
#include "HPosition.cpv"