WSF
SOSM_CoreBase.hpp
Go to the documentation of this file.
1// ****************************************************************************
2// CUI//REL TO USA ONLY
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#ifndef SOSM_COREBASE_HPP
13#define SOSM_COREBASE_HPP
14
15#include "sosm_export.h"
16
17#include <string>
18
19class UtInput;
21
24
25class SOSM_EXPORT SOSM_CoreBase : public SOSM_SpectralObject
26{
27public:
29 SOSM_CoreBase(const SOSM_CoreBase& aSrc);
30 ~SOSM_CoreBase() override;
32
34 std::string GetTypeName() const { return mTypeName; }
35
37 void SetTypeName(const std::string& aTypeName) { mTypeName = aTypeName; }
38
40 double GetModificationTime() const { return mModificationTime; }
41
43 void SetModificationTime(double aModificationTime) { mModificationTime = aModificationTime; }
44
45 void UpdateModificationTime(double aModificationTime);
46
47 std::string GetCachePrefix() const;
48
50 void SetCachePrefix(const std::string& aCachePrefix) { mCachePrefix = aCachePrefix; }
51
52 virtual bool Initialize();
53
54 virtual void InputComplete();
55
56 virtual bool ProcessInput(UtInput& aInput);
57
58protected:
61
63 std::string mTypeName;
64
67 std::string mCachePrefix;
68};
69
70#endif
SOSM_CoreBase()
Definition SOSM_CoreBase.cpp:17
std::string GetTypeName() const
Return the user-specified type name of the object.
Definition SOSM_CoreBase.hpp:34
double GetModificationTime() const
Return when the source file from which the object was recreated was last modified.
Definition SOSM_CoreBase.hpp:40
double mModificationTime
When the file was last modified.
Definition SOSM_CoreBase.hpp:60
std::string mTypeName
The type name of the object.
Definition SOSM_CoreBase.hpp:63
void SetTypeName(const std::string &aTypeName)
Set the user-specified type name of the object.
Definition SOSM_CoreBase.hpp:37
void SetCachePrefix(const std::string &aCachePrefix)
Set the cache prefix (subdirectory) to be used for creating cache files of this object.
Definition SOSM_CoreBase.hpp:50
std::string mCachePrefix
Definition SOSM_CoreBase.hpp:67
void SetModificationTime(double aModificationTime)
Set the last modification time of the object.
Definition SOSM_CoreBase.hpp:43
SOSM_CoreBase & operator=(const SOSM_CoreBase &)=delete
SOSM_SpectralObject()
Definition SOSM_SpectralObject.hpp:49
Copyrights Multiple, All Rights Reserved