MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AuthorizerFactory.h
Go to the documentation of this file.
1 #pragma once
2 /***********************************************************************
3  The IEEE hereby grants a general, royalty-free license to copy, distribute,
4  display and make derivative works from this material, for all purposes,
5  provided that any use of the material contains the following
6  attribution: "Reprinted with permission from IEEE 1516.1(TM)-2025".
7  Should you require additional information, contact the Manager, Standards
8  Intellectual Property, IEEE Standards Association (stds-ipr@ieee.org).
9 ***********************************************************************/
10 
11 #include <RTI/SpecificConfig.h>
12 #include <memory>
13 #include <string>
14 
15 // AuthorizerFactory is used by the RTI to construct instances of classes
16 // derived from Authorizer.
17 // An authorizer library includes one or more subclasses of Authorizer,
18 // one or more subclasses of AuthorizerFactory (which is used to create
19 // instances of those Authorizer subclasses), and a single implementation
20 // of AuthorizerFactoryFactory::makeAuthorizerFactory.
21 // This static function should choose a AuthorizerFactory based on the string
22 // identifier passed as an argument, and return an instance of that kind of
23 // factory. The RTI will call this function to obtain an AuthorizerFactory,
24 // and then will use that factory to create any instances of Authorizer that
25 // it needs.
26 
27 // All RTIs shall implement a reference authorizer library with an authorizer
28 // named HLAauthorizer. The interfaces for these types shall
29 // be found in the auth subdirectory.
30 
31 namespace rti1516_2025
32 {
33  class Authorizer;
34 
35  const std::wstring HLAauthorizerName(L"HLAauthorizer");
36 
38  {
39  public:
40  virtual ~AuthorizerFactory() noexcept = default;
41 
42  // Return an Authorizer
43  virtual std::unique_ptr<Authorizer> getAuthorizer() = 0;
44 
45  // Return the name of the authorizer implementation
46  virtual std::wstring getName() const = 0;
47  };
48 }
49 
50 
#define RTI_EXPORT
Definition: SpecificConfig.h:45
Definition: AuthorizerFactory.h:37
This file contains definitions that are used to isolate platform-specific elements of the API...
const std::wstring HLAauthorizerName(L"HLAauthorizer")

Document ID: Generated on Sun Jul 20 16:15:30 EDT 2025 from SVN revision 277985
Copyright © 2005-2025 MAK Technologies Inc. All Rights Reserved (www.mak.com)