AngularValue Constructor

WRAPPER_API AngularValue()

WRAPPER_API AngularValue(const AngularValue &source)

 

Description

The AngularValue constructor creates a new instance of the AngularValue class.  There are two signatures for this constructor.  The first is the default constructor, which takes no arguments and produces an AngularValue whose units are degrees and whose value is 0.  The second signature is the copy constructor, which takes a single AngularValue as an argument and produces an AngularValue whose value matches the argument.

 

Example

void AngularValue_AngularValue(GEOCALCPBW_NAMESPACE::DataSource & data)

{

GEOCALCPBW_NAMESPACE::AngularValue * av = new GEOCALCPBW_NAMESPACE::AngularValue();

_towchar issuer("BMG");

_towchar code("DEGREES");

GEOCALCPBW_NAMESPACE::AngularUnit * au = data.GetAngularUnit(issuer.c_str(), code.c_str());

av->set_Units(*au);

av->set_InUnits(-14.65);

 

GEOCALCPBW_NAMESPACE::AngularValue * avCopy = new GEOCALCPBW_NAMESPACE::AngularValue(*av);

}