WSF
SafeRIPRProc.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 2003-2015 The Boeing 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// Updated by Infoscitex, a DCS Company.
13// ****************************************************************************
14
15//***************************************************************************
16//* FILE NAME:
17//* SafeRIPRProc.hpp
18//*
19//* PURPOSE:
20//* SafeRIPRProc provides safe pointers to WsfRIPRProcessor objects
21//*
22//* NOTES:
23//* None
24//***************************************************************************
25
26#ifndef WSF_RIPR_SAFE_RIPR_PROC_HPP
27#define WSF_RIPR_SAFE_RIPR_PROC_HPP
28
29#include <string>
30
31#include "WsfStringId.hpp"
33class WsfSimulation;
36{
37public:
40 SafeRIPRProc(const WsfRIPRProcessor& aProc);
41 WsfRIPRProcessor* get() const;
42 std::string GetName() const;
43 bool operator==(const SafeRIPRProc& other) const;
44 bool operator!=(const SafeRIPRProc& other) const;
45 bool operator<(const SafeRIPRProc& other) const;
46
47private:
48 WsfSimulation* mSimulationPtr;
50 size_t mPlatformIndex;
51
53 WsfStringId mProcessorIndex;
54};
55
56#endif
UtStringId WsfStringId
WsfStringId – the same thing as UtStringId.
Definition WsfStringId.hpp:23
std::string GetName() const
Returns the name of the pointee if it exists, 0 otherwise.
Definition SafeRIPRProc.cpp:88
bool operator==(const SafeRIPRProc &other) const
Definition SafeRIPRProc.cpp:109
SafeRIPRProc()
Constructor that creates a null safe pointer.
Definition SafeRIPRProc.cpp:64
bool operator<(const SafeRIPRProc &other) const
Produces a consistant ordering of SafeRIPRProc objects.
Definition SafeRIPRProc.cpp:122
bool operator!=(const SafeRIPRProc &other) const
Definition SafeRIPRProc.cpp:116
WsfRIPRProcessor * get() const
Returns a WsfRIPRProcessor* if the pointee exists, 0 otherwise.
Definition SafeRIPRProc.cpp:72
Definition WsfRIPRProcessor.hpp:45
The main controller for a simulation.
Definition WsfSimulation.hpp:109
Copyrights Multiple, All Rights Reserved