On 13/12/2018 12:40, ja2bqx wrote:
Please tell me the source cord which acquires DXCC Entity from a callsign
using cty.dat in wsjtx v2.0.
Logqso.cpp
Hi Nobu san,
you will need a pointer to the LogBook object instance, I suggest you
change the LogQSO class constructor to take a new argument of type
'LogBook const *' and store that in a new data member of the same type.
You would pass &m_logBook to the LogQSO constructor call in the
MainWindow member initialization list.
Having made the LogBook object instance available then the call you
require is:
auto entity_record = m_logbook->countries ().lookup (callsign);
For that you will need to include:
#include "logbook/logbook.h"
#include "logbook/AD1CCty.hpp"
and look in the second of those for the definition of the record
returned by the lookup call. E.g. you need entity_record.entity_name .
73
Bill
G4WJS.
_______________________________________________
wsjt-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wsjt-devel