NOMADStarDataWriter

Search for usage in LXR

#include <nomadbinfile2mysql.h>

Public Member Functions

 NOMADStarDataWriter (FILE *f, int HTMLevel, MYSQL *link, char *_db_tbl)
 
 NOMADStarDataWriter (FILE *f, int HTMLevel, sqlite3 *_db, char *_db_tbl)
 
 ~NOMADStarDataWriter ()
 
 ~NOMADStarDataWriter ()
 
bool write ()
 
bool write ()
 

Static Public Member Functions

static void bswap_stardata (DeepStarData *stardata)
 
static void bswap_stardata (DeepStarData *stardata)
 
static void calculatePMCoords (double startRA, double startDec, double dRA, double dDec, double *endRA, double *endDec, float years)
 
static void calculatePMCoords (double startRA, double startDec, double dRA, double dDec, double *endRA, double *endDec, float years)
 

Detailed Description

Writes NOMAD star data.

Note
This is ugly code, not part of the main KStars program
Author
Akarsh Simha akars.nosp@m.h.si.nosp@m.mha@k.nosp@m.dema.nosp@m.il.ne.nosp@m.t

Definition at line 42 of file nomadbinfile2mysql.h.

Constructor & Destructor Documentation

◆ NOMADStarDataWriter() [1/2]

NOMADStarDataWriter::NOMADStarDataWriter ( FILE * f,
int HTMLevel,
MYSQL * link,
char * _db_tbl )

Constructor.

Sets up the HTMesh, initializes various things.

Definition at line 27 of file nomadbinfile2mysql.cpp.

◆ ~NOMADStarDataWriter() [1/2]

NOMADStarDataWriter::~NOMADStarDataWriter ( )

Destructor.

Deletes the HTMesh we created.

Definition at line 37 of file nomadbinfile2mysql.cpp.

◆ NOMADStarDataWriter() [2/2]

NOMADStarDataWriter::NOMADStarDataWriter ( FILE * f,
int HTMLevel,
sqlite3 * _db,
char * _db_tbl )

Constructor.

Sets up the HTMesh, initializes various things.

Definition at line 28 of file nomadbinfile2sqlite.cpp.

◆ ~NOMADStarDataWriter() [2/2]

NOMADStarDataWriter::~NOMADStarDataWriter ( )

Destructor.

Deletes the HTMesh we created.

Member Function Documentation

◆ bswap_stardata() [1/2]

void NOMADStarDataWriter::bswap_stardata ( DeepStarData * stardata)
static

Byteswaps the DeepStarData structure.

Definition at line 42 of file nomadbinfile2mysql.cpp.

◆ bswap_stardata() [2/2]

static void NOMADStarDataWriter::bswap_stardata ( DeepStarData * stardata)
static

Byteswaps the DeepStarData structure.

◆ calculatePMCoords() [1/2]

void NOMADStarDataWriter::calculatePMCoords ( double startRA,
double startDec,
double dRA,
double dDec,
double * endRA,
double * endDec,
float years )
static

Computes the (unprecessed) coordinates of a star after accounting for proper motion.

Calculate the final destination RA and Dec of a star with the given initial RA, Dec and proper motion rates after 'years' number of years.

Definition at line 83 of file nomadbinfile2mysql.cpp.

◆ calculatePMCoords() [2/2]

static void NOMADStarDataWriter::calculatePMCoords ( double startRA,
double startDec,
double dRA,
double dDec,
double * endRA,
double * endDec,
float years )
static

Computes the (unprecessed) coordinates of a star after accounting for proper motion.

◆ write() [1/2]

bool NOMADStarDataWriter::write ( )

Writes the star data into the DB by calling multiple functions.

Returns
Whether the write was successful

Definition at line 409 of file nomadbinfile2mysql.cpp.

◆ write() [2/2]

bool NOMADStarDataWriter::write ( )

Writes the star data into the DB by calling multiple functions.

Returns
Whether the write was successful

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:16:42 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.