WSF
WsfDE_FileHandle.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI
3//
4// The Advanced Framework for Simulation, Integration, and Modeling (AFSIM)
5//
6// Copyright 2020 Infoscitex, a DCS Company. All rights reserved.
7//
8// The use, dissemination or disclosure of data in this file is subject to
9// limitation or restriction. See accompanying README and LICENSE for details.
10// ****************************************************************************
11
12#ifndef WSFDEFILEHANDLE_HPP
13#define WSFDEFILEHANDLE_HPP
14
15#include "WsfDE_File.hpp"
16
25{
26public:
27 explicit WsfDE_FileHandle(const WsfDE_File& aDE_File);
28 WsfDE_FileHandle(const WsfDE_FileHandle& aOther) = default;
29 ~WsfDE_FileHandle() = default;
30
31 WsfDE_FileHandle& operator=(const WsfDE_FileHandle& aOther) = default;
32
33 WsfDE_FileHandle* Clone() const { return new WsfDE_FileHandle{*this}; }
34
35 void GetPlanetEphemeris(const WsfDE_File::Date& aEpoch,
36 WsfDE_File::Body aTarget,
37 WsfDE_File::Body aOrigin,
38 UtVec3d& aPosition,
39 UtVec3d& aVelocity) const;
40
42 int GetDE_Num() const { return mDE_File.GetDE_Num(); }
43
49 double GetFileStartJD() const { return mDE_File.GetFileStartJD(); }
50
56 double GetFileEndJD() const { return mDE_File.GetFileEndJD(); }
57
59 const std::string& GetFileName() const { return mDE_File.GetFileName(); }
60
61private:
62 const WsfDE_File& mDE_File;
63 mutable WsfDE_File::Workspace mWorkspace{};
64};
65
66#endif // WSFDEFILEHANDLE_HPP
const std::string & GetFileName() const
Return the name of the file that provided this ephemeris.
Definition WsfDE_FileHandle.hpp:59
void GetPlanetEphemeris(const WsfDE_File::Date &aEpoch, WsfDE_File::Body aTarget, WsfDE_File::Body aOrigin, UtVec3d &aPosition, UtVec3d &aVelocity) const
Definition WsfDE_FileHandle.cpp:44
WsfDE_FileHandle(const WsfDE_FileHandle &aOther)=default
double GetFileStartJD() const
Definition WsfDE_FileHandle.hpp:49
WsfDE_FileHandle * Clone() const
Definition WsfDE_FileHandle.hpp:33
WsfDE_FileHandle & operator=(const WsfDE_FileHandle &aOther)=default
int GetDE_Num() const
Return the DE number contained in the DE file to which this is a handle.
Definition WsfDE_FileHandle.hpp:42
WsfDE_FileHandle(const WsfDE_File &aDE_File)
Definition WsfDE_FileHandle.cpp:18
~WsfDE_FileHandle()=default
double GetFileEndJD() const
Definition WsfDE_FileHandle.hpp:56
Definition WsfDE_File.hpp:50
Body
The possible bodies that can be the target or center of the provided ephemeris.
Definition WsfDE_File.hpp:57
Definition WsfDE_File.hpp:82
Definition WsfDE_File.hpp:93
Copyrights Multiple, All Rights Reserved