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[email protected]h.si[email protected][email protected][email protected]dema[email protected]il.ne[email protected]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]

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.

◆ calculatePMCoords() [2/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.

◆ 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-2022 The KDE developers.
Generated on Thu Aug 18 2022 03:56:47 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.