Dear list members,

I am a PhD candidate and in the course of my research
I have developed an open-source tool [1] that allows you to instrument  
existing
C/C++ programs so that you can run SQL queries on their in-memory data  
structures.
All that's needed is adding a few lines of code, and linking with our  
PicoQL library.
I have already instrumented successfully Stellarium, two other  
mid-range C++ applications,
HDF and FITS containers (scientific computing data formats) as well as  
the Linux kernel.
SQL queries are issued interactively from an external interface and  
are type safe. They
are useful in extracting knowledge out of the application's data  
structures and
(cross-)checking system invariants using data structure state.
For example, it is easy to instrument Stellarium's hierarchy of  
services and modules
and combine them in queries such as the fairly trivial:

SELECT * FROM Constellation;  // Get all constellations from  
vector<Constellation *>
SELECT * FROM Planet JOIN SatellitePlanet ON SatellitePlanet.base =  
Planet.Satellites_id;  // For each
planet in QList<PlanetP> get its satellites from  
QList<QSharedPointer<Planet> >

The whole Stellarium class hierarchy can be instrumented like this.
More information on the mapping and more queries are available here [2].

 From your experience in developing Stellarium can you see specific  
uses of this work that would be
valuable to the development team and/or the user community?
One thought is to be able to track all stellar objects or those of a  
specific type, say planets,
projected on screen (in viewport) at a certain time.
I have provided support for this (without any side-effects I hope) [3].

[1] https://github.com/mfragkoulis/PiCO_QL
[2] https://github.com/mfragkoulis/PiCO_QL/tree/master/examples/Stellarium
[3]  
https://github.com/mfragkoulis/PiCO_QL/blob/master/examples/Stellarium/stellarium_dsl.sql#L57

Regards,

Marios Fragkoulis
PhD candidate
Software Engineering and Security Lab
Department of Management Science and Technology
Athens University of Economics and Business
http://istlab.dmst.aueb.gr/content/members/m_mfrag.html


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Stellarium-pubdevel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stellarium-pubdevel

Reply via email to