parseobject.h
上传用户:center1979
上传日期:2022-07-26
资源大小:50633k
文件大小:2k
- // parseobject.h
- //
- // Copyright (C) 2004 Chris Laurel <claurel@shatters.net>
- //
- // Functions for parsing objects common to star, solar system, and
- // deep sky catalogs.
- //
- // This program is free software; you can redistribute it and/or
- // modify it under the terms of the GNU General Public License
- // as published by the Free Software Foundation; either version 2
- // of the License, or (at your option) any later version.
- #ifndef _CELENGINE_PARSEOBJECT_H_
- #define _CELENGINE_PARSEOBJECT_H_
- #include <string>
- #include "astro.h"
- #include "body.h"
- #include "parser.h"
- class ReferenceFrame;
- class TwoVectorFrame;
- class Universe;
- class Selection;
- bool ParseDate(Hash* hash, const string& name, double& jd);
- Orbit* CreateOrbit(const Selection& centralObject,
- Hash* planetData,
- const std::string& path,
- bool usePlanetUnits);
- RotationModel* CreateRotationModel(Hash* rotationData,
- const string& path,
- double syncRotationPeriod);
- RotationModel* CreateDefaultRotationModel(double syncRotationPeriod);
- ReferenceFrame* CreateReferenceFrame(const Universe& universe,
- Value* frameValue,
- const Selection& defaultCenter,
- Body* defaultObserver);
- TwoVectorFrame* CreateTopocentricFrame(const Selection& center,
- const Selection& target,
- const Selection& observer);
- #endif // _CELENGINE_PARSEOBJECT_H_