WSF
WsfScriptGroupClass.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#ifndef WSFSCRIPTGROUPCLASS_HPP
13#define WSFSCRIPTGROUPCLASS_HPP
14
15#include "wsf_export.h"
16
19
22{
23public:
24 WsfScriptGroupClass(const std::string& aClassName, UtScriptTypes* aScriptTypesPtr);
25
26 void* Create(const UtScriptContext& aInstance) override;
27 void* Clone(void* aObjectPtr) override;
28 void Destroy(void* aObjectPtr) override;
29 void OnNewScriptRef(UtScriptRef& aReference) override;
30
31 // Group management methods
32 UT_DECLARE_SCRIPT_METHOD(AddMember_1); // Add the given platform to the group
33 UT_DECLARE_SCRIPT_METHOD(AddMember_2); // Add the given platform part to the group
34 UT_DECLARE_SCRIPT_METHOD(RemoveMember_1); // Remove the given platform from the group
35 UT_DECLARE_SCRIPT_METHOD(RemoveMember_2); // Remove the given platform part from the group
36 UT_DECLARE_SCRIPT_METHOD(MembersByName); // Returns a list of member names
37 UT_DECLARE_SCRIPT_METHOD(Members); // Returns a list of member objects
38 UT_DECLARE_SCRIPT_METHOD(Member); // Returns a member given an index
39 UT_DECLARE_SCRIPT_METHOD(Size); // Returns the number of members in the group
40
42
43 // Static methods
44 UT_DECLARE_SCRIPT_METHOD(CreateGroup); // creates a group of the given type with the given name
45 UT_DECLARE_SCRIPT_METHOD(Group); // returns a pointer to the group matching the given name
46 UT_DECLARE_SCRIPT_METHOD(Groups); // returns a list of the names of all groups in the simulation
47};
48
49#endif
#define UT_DECLARE_AUX_DATA_SCRIPT_METHODS()
Definition WsfScriptAuxDataUtil.hpp:194
#define WSF_EXPORT
Definition WsfXIO_Export.hpp:35
UT_DECLARE_SCRIPT_METHOD(RemoveMember_1)
UT_DECLARE_SCRIPT_METHOD(Members)
UT_DECLARE_SCRIPT_METHOD(Member)
UT_DECLARE_SCRIPT_METHOD(AddMember_1)
void OnNewScriptRef(UtScriptRef &aReference) override
virtual
Definition WsfScriptGroupClass.cpp:77
UT_DECLARE_SCRIPT_METHOD(MembersByName)
UT_DECLARE_SCRIPT_METHOD(RemoveMember_2)
UT_DECLARE_SCRIPT_METHOD(AddMember_2)
UT_DECLARE_SCRIPT_METHOD(Size)
WsfScriptGroupClass(const std::string &aClassName, UtScriptTypes *aScriptTypesPtr)
Definition WsfScriptGroupClass.cpp:24
void * Create(const UtScriptContext &aInstance) override
Definition WsfScriptObjectClass.cpp:44
void Destroy(void *aObjectPtr) override
Definition WsfScriptObjectClass.cpp:56
void * Clone(void *aObjectPtr) override
Definition WsfScriptObjectClass.cpp:50
WsfScriptObjectClass(const std::string &aClassName, UtScriptTypes *aTypesPtr)
Definition WsfScriptObjectClass.cpp:24
Copyrights Multiple, All Rights Reserved