• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

kstars

Public Member Functions | Static Public Member Functions | List of all members
NOMADStarDataWriter Class Reference

#include <nomadbinfile2mysql.h>

Public Member Functions

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

Static Public Member Functions

static void bswap_stardata (DeepStarData *stardata)
 
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 52 of file nomadbinfile2mysql.h.

Constructor & Destructor Documentation

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

Constructor.

Sets up the HTMesh, initializes various things.

Definition at line 38 of file nomadbinfile2mysql.cpp.

NOMADStarDataWriter::~NOMADStarDataWriter ( )

Destructor.

Deletes the HTMesh we created.

Definition at line 47 of file nomadbinfile2mysql.cpp.

Member Function Documentation

void NOMADStarDataWriter::bswap_stardata ( DeepStarData *  stardata)
static

Byteswaps the DeepStarData structure.

Definition at line 51 of file nomadbinfile2mysql.cpp.

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 80 of file nomadbinfile2mysql.cpp.

bool NOMADStarDataWriter::write ( )

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

Returns
Whether the write was successful

Definition at line 363 of file nomadbinfile2mysql.cpp.


The documentation for this class was generated from the following files:
  • nomadbinfile2mysql.h
  • nomadbinfile2mysql.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:23 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kstars

Skip menu "kstars"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal