MAK RTIspy API Documentation for HLA 4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
AuthorizationResult.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 <string>
13 
14 namespace rti1516_2025
15 {
17  {
18  public:
19  enum Code {
20  AUTHORIZED, UNAUTHORIZED, INVALID_CREDENTIALS, AUTHORIZATION_ERROR
21  };
22 
24  Code code, std::wstring const & message = L"")
25  : _code(code), _message(message)
26  {
27  }
28 
29  virtual ~AuthorizationResult ()
30  noexcept = default;
31 
33  AuthorizationResult const & rhs) = default;
34 
35  Code getCode() const
36  {
37  return _code;
38  };
39 
40  std::wstring const & getMessage() const
41  {
42  return _message;
43  }
44 
45  private:
47  std::wstring _message;
48  };
49 }
50 
51 
#define RTI_EXPORT
Definition: SpecificConfig.h:45
Code _code
Definition: AuthorizationResult.h:46
AuthorizationResult(Code code, std::wstring const &message=L"")
Definition: AuthorizationResult.h:23
std::wstring const & getMessage() const
Definition: AuthorizationResult.h:40
std::wstring _message
Definition: AuthorizationResult.h:47
Code
Definition: AuthorizationResult.h:19
Definition: AuthorizationResult.h:16
This file contains definitions that are used to isolate platform-specific elements of the API...
Definition: AuthorizationResult.h:20

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)