WSF
P6DofObject.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 2016-2017 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 P6DOFOBJECT_H
13#define P6DOFOBJECT_H
14
15#include "p6dof_export.h"
16
17#include <iostream>
18#include <list>
19
20class P6DofScenario;
21class P6DofVehicle;
22
23class P6DOF_EXPORT P6DofObject
24{
25public:
26 explicit P6DofObject(P6DofScenario* aScenario);
27
28 virtual ~P6DofObject() = default;
29
30 P6DofObject* Clone() const;
31
32 P6DofScenario* GetScenario() const { return mScenario; }
33
34 std::string GetName() const { return mObjName; }
35 void SetName(const std::string& aName) { mObjName = aName; }
36
37 // ParentVehicle is the Vehicle this object is attached to (This may be different from Parent)
39 virtual void SetParentVehicle(P6DofVehicle* aParentVehicle) { mParentVehicle = aParentVehicle; }
40
41protected:
42 P6DofObject(const P6DofObject& aSrc) = default;
43 P6DofObject& operator=(const P6DofObject& other) = default;
44
47 std::string mObjName;
48};
49
50#endif
P6DofObject & operator=(const P6DofObject &other)=default
P6DofVehicle * mParentVehicle
Definition P6DofObject.hpp:46
P6DofObject(const P6DofObject &aSrc)=default
std::string mObjName
Definition P6DofObject.hpp:47
void SetName(const std::string &aName)
Definition P6DofObject.hpp:35
P6DofObject(P6DofScenario *aScenario)
Definition P6DofObject.cpp:17
std::string GetName() const
Definition P6DofObject.hpp:34
P6DofScenario * GetScenario() const
Definition P6DofObject.hpp:32
P6DofVehicle * GetParentVehicle() const
Definition P6DofObject.hpp:38
P6DofObject * Clone() const
Definition P6DofObject.cpp:24
virtual ~P6DofObject()=default
P6DofScenario * mScenario
Definition P6DofObject.hpp:45
virtual void SetParentVehicle(P6DofVehicle *aParentVehicle)
Definition P6DofObject.hpp:39
Definition P6DofScenario.hpp:25
Definition P6DofVehicle.hpp:53
Copyrights Multiple, All Rights Reserved