Kstars

skycomponents/typedef.h
1 /*
2  SPDX-FileCopyrightText: 2007 James B. Bowlin <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 /* It is a bit cheesy/crappy to have somewhat unrelated typedefs gathered in a
8  * single typedef.h file like this but it has been incredibly useful For
9  * example, I could convert the list structures below from QList to QVector by
10  * simply making a single change in this file. Also, typedefs can take people
11  * by surprise so by putting most of them all in one place I hope to remove
12  * some of the surprise.
13  *
14  * -- James B. Bowlin
15  *
16  * We may transition to the use of smart pointers whereever possible. Gathering
17  * syntactic sugar here, takes the pain of it away.
18  *
19  * Conventions:
20  * - [x]_ptr<Type> => Type_[first letter of `x`]
21  * for example: typedef std::shared_ptr<SkyObject> SkyObject_s;
22  *
23  * -- Valentin Boettcher
24  */
25 
26 #pragma once
27 
28 #include <qglobal.h>
29 #include <QHash>
30 #include <QVector>
31 
32 #include <memory>
33 
34 class SkyPoint;
35 class LineList;
36 class StarObject;
37 class StarBlock;
38 class SkyObject;
39 class KSPlanetBase;
40 class GeoLocation;
41 class EclipseEvent;
42 
43 typedef quint32 DrawID;
44 typedef quint32 UpdateID;
45 typedef qint32 Trixel;
46 typedef unsigned short BufNum;
47 
56 
57 typedef std::shared_ptr<SkyObject> SkyObject_s;
58 typedef std::shared_ptr<KSPlanetBase> KSPlanetBase_s;
59 typedef std::shared_ptr<EclipseEvent> EclipseEvent_s;
The EclipseEvent class.
Stores dms coordinates for a point in the sky. for converting between coordinate systems.
Definition: skypoint.h:44
subclass of SkyObject specialized for stars.
Definition: starobject.h:32
Information about an object in the sky.
Definition: skyobject.h:41
Provides necessary information about objects in the solar system.
Definition: ksplanetbase.h:49
Relevant data about an observing location on Earth.
Definition: geolocation.h:27
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Fri Aug 19 2022 03:57:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.