WSF
AttributeOwner.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-2013 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#ifndef ATTRIBUTEOWNER_HPP
12#define ATTRIBUTEOWNER_HPP
13#include "ViExport.hpp"
14
15namespace wizard
16{
17class AttributeSet;
23{
24public:
25 explicit AttributeOwner();
26 explicit AttributeOwner(AttributeSet* aAttributes);
27 virtual ~AttributeOwner();
28
31 virtual void AttributeStateChanged() {}
32 bool HasAttributes() const { return mAttributes != nullptr; }
33 AttributeSet& Attributes() const { return *mAttributes; }
34
35protected:
36 void SetAttributes(AttributeSet* aAttributesPtr);
37
38private:
39 AttributeSet* mAttributes;
40};
41} // namespace wizard
42#endif
#define VI_EXPORT
Definition ViExport.hpp:38
bool HasAttributes() const
Definition AttributeOwner.hpp:32
AttributeOwner()
Definition AttributeOwner.cpp:17
AttributeSet & Attributes() const
Definition AttributeOwner.hpp:33
virtual void AttributeStateChanged()
Definition AttributeOwner.hpp:31
Definition AttributeSet.hpp:32
Definition Runner.hpp:22
Copyrights Multiple, All Rights Reserved