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

kstars

  • sources
  • kde-4.12
  • kdeedu
  • kstars
  • kstars
  • oal
log.h
Go to the documentation of this file.
1 /***************************************************************************
2  log.h - description
3 
4  -------------------
5  begin : Friday June 19, 2009
6  copyright : (C) 2009 by Prakash Mohan
7  email : prakash.mohan@kdemail.net
8  ***************************************************************************/
9 
10 /***************************************************************************
11  * *
12  * This program is free software; you can redistribute it and/or modify *
13  * it under the terms of the GNU General Public License as published by *
14  * the Free Software Foundation; either version 2 of the License, or *
15  * (at your option) any later version. *
16  * *
17  ***************************************************************************/
18 #ifndef LOG_H_
19 #define LOG_H_
20 
21 #include "oal/oal.h"
22 
23 #include <QString>
24 #include <QXmlStreamReader>
25 #include <QXmlStreamWriter>
26 
27 #include "kstars.h"
28 #include "dms.h"
29 #include "skyobjects/skyobject.h"
30 #include "oal/observer.h"
31 #include "oal/site.h"
32 #include "oal/session.h"
33 #include "oal/scope.h"
34 #include "oal/eyepiece.h"
35 #include "oal/filter.h"
36 #include "oal/lens.h"
37 #include "oal/observation.h"
38 
39 class KStars;
40 
41 class OAL::Log {
42  public:
43  QString writeLog( bool native = true );
44  void writeBegin();
45  void writeGeoDate();
46  void writeObservers();
47  void writeSites();
48  void writeSessions();
49  void writeTargets();
50  void writeScopes();
51  void writeEyepieces();
52  void writeLenses();
53  void writeFilters();
54  void writeImagers();
55  void writeObservations();
56  inline QList<SkyObject *> *targetList() { return &m_targetList; }
57  inline QList<OAL::Scope *> *scopeList() { return &m_scopeList; }
58  inline QList<OAL::Site *> *siteList() { return &m_siteList; }
59  inline QList<OAL::Session *> *sessionList() { return &m_sessionList; }
60  inline QList<OAL::Eyepiece *> *eyepieceList() { return &m_eyepieceList; }
61  inline QList<OAL::Lens *> *lensList() { return &m_lensList; }
62  inline QList<OAL::Filter *> *filterList() { return &m_filterList; }
63  inline QList<OAL::Observation *> *observationList() { return &m_observationList; }
64  inline QList<OAL::Observer *> *observerList() { return &m_observerList; }
65  void writeObserver( OAL::Observer *o );
66  void writeSite( OAL::Site *s );
67  void writeSession( OAL::Session *s );
68  void writeTarget( SkyObject *o );
69  void writeScope( OAL::Scope *s );
70  void writeEyepiece( OAL::Eyepiece *ep );
71  void writeLens( OAL::Lens *l );
72  void writeFilter(OAL::Filter *f );
73  void writeObservation( OAL::Observation *o );
74 // void writeImager();
75  void writeEnd();
76  void readBegin( QString input );
77  void readLog();
78  void readUnknownElement();
79  void readTargets();
80  void readObservers();
81  void readSites();
82  void readSessions();
83  void readScopes();
84  void readEyepieces();
85  void readLenses();
86  void readFilters();
87  void readObservation( QString id );
88  void readTarget();
89  void readSite( QString id );
90  void readSession( QString id, QString lang );
91  void readPosition();
92  void readGeoDate();
93  QString readResult();
94  OAL::Observer* findObserverByName( QString fullName );
95  OAL::Observer* findObserverById( QString id );
96  OAL::Site* findSiteByName( QString name );
97  OAL::Site* findSiteById( QString id );
98  OAL::Session* findSessionByName( QString id );
99  OAL::Scope* findScopeByName( QString name );
100  OAL::Scope* findScopeById( QString id );
101  OAL::Eyepiece* findEyepieceById( QString id );
102  OAL::Lens* findLensById( QString id );
103  OAL::Filter* findFilterById( QString id );
104  OAL::Eyepiece* findEyepieceByName( QString name );
105  OAL::Lens* findLensByName( QString name );
106  OAL::Filter* findFilterByName( QString name );
107  OAL::Observation* findObservationByName( QString name );
108  QHash<QString, QTime> timeHash() { return TimeHash; }
109  KStarsDateTime dateTime() { return dt; }
110  GeoLocation* geoLocation() { return geo; }
111  inline QString writtenOutput() { return output; }
112  private:
113  QList<SkyObject *> m_targetList;
114  QList<OAL::Observer *> m_observerList;
115  QList<OAL::Eyepiece *> m_eyepieceList;
116  QList<OAL::Lens *> m_lensList;
117  QList<OAL::Filter *> m_filterList;
118 // QList<OAL::Equipment *> m_equipmentList;
119 // QList<OAL::Imager *> m_imagerList;
120  QList<OAL::Site *> m_siteList;
121  QList<OAL::Session *> m_sessionList;
122  QList<OAL::Scope *> m_scopeList;
123  QList<OAL::Observation *> m_observationList;
124  QString output;
125  bool native;
126  dms ra, dec;
127  KStars *ks;
128  QXmlStreamWriter *writer;
129  QXmlStreamReader *reader;
130  QHash<QString, QTime> TimeHash;
131  KStarsDateTime dt;
132  GeoLocation *geo;
133 };
134 #endif
OAL::Eyepiece
Definition: eyepiece.h:25
OAL::Log::writeObservation
void writeObservation(OAL::Observation *o)
Definition: log.cpp:322
site.h
OAL::Log::writeLog
QString writeLog(bool native=true)
Definition: log.cpp:42
OAL::Log::findLensByName
OAL::Lens * findLensByName(QString name)
Definition: log.cpp:780
OAL::Log::targetList
QList< SkyObject * > * targetList()
Definition: log.h:56
OAL::Log::dateTime
KStarsDateTime dateTime()
Definition: log.h:109
OAL::Log::writeSites
void writeSites()
Definition: log.cpp:73
OAL::Log::readSession
void readSession(QString id, QString lang)
Definition: log.cpp:562
OAL::Log::writtenOutput
QString writtenOutput()
Definition: log.h:111
skyobject.h
filter.h
OAL::Log::readLenses
void readLenses()
Definition: log.cpp:490
OAL::Scope
Definition: scope.h:25
session.h
OAL::Log::writeObservations
void writeObservations()
Definition: log.cpp:128
OAL::Log::writeFilter
void writeFilter(OAL::Filter *f)
Definition: log.cpp:304
OAL::Log::readObservers
void readObservers()
Definition: log.cpp:446
OAL::Log::writeSession
void writeSession(OAL::Session *s)
Definition: log.cpp:220
OAL::Log::readTarget
void readTarget()
Definition: log.cpp:498
OAL::Log::writeSessions
void writeSessions()
Definition: log.cpp:80
KStars
This is the main window for KStars.
Definition: kstars.h:94
OAL::Log::readResult
QString readResult()
Definition: log.cpp:654
observer.h
OAL::Log::writeTarget
void writeTarget(SkyObject *o)
Definition: log.cpp:133
OAL::Log::timeHash
QHash< QString, QTime > timeHash()
Definition: log.h:108
OAL::Log::sessionList
QList< OAL::Session * > * sessionList()
Definition: log.h:59
OAL::Log::writeEnd
void writeEnd()
Definition: log.cpp:61
dms.h
OAL::Log::writeObservers
void writeObservers()
Definition: log.cpp:66
NaN::f
const float f
Definition: nan.h:36
oal.h
OAL::Log::findLensById
OAL::Lens * findLensById(QString id)
Definition: log.cpp:745
OAL::Log::readScopes
void readScopes()
Definition: log.cpp:482
OAL::Log::writeBegin
void writeBegin()
Definition: log.cpp:28
OAL::Log::findObserverById
OAL::Observer * findObserverById(QString id)
Definition: log.cpp:703
OAL::Log::readSite
void readSite(QString id)
Definition: log.cpp:537
OAL::Log::readTargets
void readTargets()
Definition: log.cpp:430
OAL::Log::observationList
QList< OAL::Observation * > * observationList()
Definition: log.h:63
GeoLocation
Contains all relevant information for specifying a location on Earth: City Name, State/Province name...
Definition: geolocation.h:39
OAL::Log::scopeList
QList< OAL::Scope * > * scopeList()
Definition: log.h:57
OAL::Log::writeFilters
void writeFilters()
Definition: log.cpp:116
OAL::Filter
Definition: filter.h:25
scope.h
OAL::Log::readEyepieces
void readEyepieces()
Definition: log.cpp:486
OAL::Log::findSiteById
OAL::Site * findSiteById(QString id)
Definition: log.cpp:717
OAL::Log::readSessions
void readSessions()
Definition: log.cpp:466
OAL::Log::findObservationByName
OAL::Observation * findObservationByName(QString name)
Definition: log.cpp:787
OAL::Log::findSiteByName
OAL::Site * findSiteByName(QString name)
Definition: log.cpp:724
OAL::Log::geoLocation
GeoLocation * geoLocation()
Definition: log.h:110
KStarsDateTime
Extension of KDateTime for KStars KStarsDateTime can represent the date/time as a Julian Day...
Definition: kstarsdatetime.h:45
eyepiece.h
OAL::Log::writeGeoDate
void writeGeoDate()
Definition: log.cpp:366
OAL::Session
Definition: session.h:26
OAL::Log::findSessionByName
OAL::Session * findSessionByName(QString id)
Definition: log.cpp:710
OAL::Log::writeEyepieces
void writeEyepieces()
Definition: log.cpp:102
dms
An angle, stored as degrees, but expressible in many ways.
Definition: dms.h:42
lens.h
observation.h
OAL::Log::writeSite
void writeSite(OAL::Site *s)
Definition: log.cpp:205
OAL::Log::writeScopes
void writeScopes()
Definition: log.cpp:95
OAL::Log::readLog
void readLog()
Definition: log.cpp:406
OAL::Site
Definition: site.h:27
OAL::Log::writeLenses
void writeLenses()
Definition: log.cpp:109
OAL::Log::writeImagers
void writeImagers()
Definition: log.cpp:123
OAL::Log::readFilters
void readFilters()
Definition: log.cpp:494
OAL::Log::findEyepieceById
OAL::Eyepiece * findEyepieceById(QString id)
Definition: log.cpp:738
OAL::Log::findScopeById
OAL::Scope * findScopeById(QString id)
Definition: log.cpp:731
OAL::Log::readGeoDate
void readGeoDate()
Definition: log.cpp:671
OAL::Log::writeTargets
void writeTargets()
Definition: log.cpp:87
OAL::Log::writeLens
void writeLens(OAL::Lens *l)
Definition: log.cpp:289
OAL::Log::readUnknownElement
void readUnknownElement()
Definition: log.cpp:394
OAL::Log::writeEyepiece
void writeEyepiece(OAL::Eyepiece *ep)
Definition: log.cpp:271
OAL::Log::findObserverByName
OAL::Observer * findObserverByName(QString fullName)
Definition: log.cpp:696
OAL::Log::eyepieceList
QList< OAL::Eyepiece * > * eyepieceList()
Definition: log.h:60
OAL::Log::readPosition
void readPosition()
Definition: log.cpp:595
OAL::Log::findScopeByName
OAL::Scope * findScopeByName(QString name)
Definition: log.cpp:759
OAL::Log::findEyepieceByName
OAL::Eyepiece * findEyepieceByName(QString name)
Definition: log.cpp:766
OAL::Log::writeObserver
void writeObserver(OAL::Observer *o)
Definition: log.cpp:191
OAL::Log::readSites
void readSites()
Definition: log.cpp:450
OAL::Observer
Definition: observer.h:25
OAL::Log
Definition: log.h:41
OAL::Observation
Definition: observation.h:36
OAL::Log::writeScope
void writeScope(OAL::Scope *s)
Definition: log.cpp:243
OAL::Log::siteList
QList< OAL::Site * > * siteList()
Definition: log.h:58
OAL::Log::readBegin
void readBegin(QString input)
Definition: log.cpp:382
SkyObject
Provides all necessary information about an object in the sky: its coordinates, name(s), type, magnitude, and QStringLists of URLs for images and webpages regarding the object.
Definition: skyobject.h:46
OAL::Log::findFilterByName
OAL::Filter * findFilterByName(QString name)
Definition: log.cpp:773
OAL::Log::readObservation
void readObservation(QString id)
Definition: log.cpp:613
OAL::Log::filterList
QList< OAL::Filter * > * filterList()
Definition: log.h:62
OAL::Lens
Definition: lens.h:25
kstars.h
OAL::Log::findFilterById
OAL::Filter * findFilterById(QString id)
Definition: log.cpp:752
QList
OAL::Log::lensList
QList< OAL::Lens * > * lensList()
Definition: log.h:61
OAL::Log::observerList
QList< OAL::Observer * > * observerList()
Definition: log.h:64
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:36:20 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