ModelSpace
All Classes Namespaces Functions Variables Enumerations Pages
simlicense.h
1/******************************************************************************
2* Copyright (c) ATTX LLC 2024. All Rights Reserved.
3*
4* This software and associated documentation (the "Software") are the
5* proprietary and confidential information of ATTX, LLC. The Software is
6* furnished under a license agreement between ATTX and the user organization
7* and may be used or copied only in accordance with the terms of the agreement.
8* Refer to 'license/attx_license.adoc' for standard license terms.
9*
10* EXPORT CONTROL NOTICE: THIS SOFTWARE MAY INCLUDE CONTENT CONTROLLED UNDER THE
11* INTERNATIONAL TRAFFIC IN ARMS REGULATIONS (ITAR) OR THE EXPORT ADMINISTRATION
12* REGULATIONS (EAR99). No part of the Software may be used, reproduced, or
13* transmitted in any form or by any means, for any purpose, without the express
14* written permission of ATTX, LLC.
15******************************************************************************/
16#ifndef SIMLICENSE_FUNCTIONS_H
17#define SIMLICENSE_FUNCTIONS_H
18
19#include <string>
20
21namespace modelspace {
22
23 /// @brief Function to check and verify that user has license for the simulation
24 /// @param license_file The license file containing the user's data, if it exists
25 /// @param license_server The license server which may be used to locate another file
26 /// @return Error code corresponding to success/failure
27 int checkVerifyLicense(const std::string &license_file, const std::string &license_server);
28
29 /// @brief Function to parse license string for relevant data
30 /// @param str The license string to parse (loaded from file)
31 /// @param licensee The licensing organization
32 /// @param year The year when the locally stored license expires
33 /// @param month The month when the locally stored license expires
34 /// @param day The day when the locally stored license expires
35 void parseLicenseString(std::string str, std::string &licensee, int &year, int &month, int &day);
36
37}
38
39#endif
Class to propagate CR3BP dynamics in characteristic units.
Definition ConfigurationWriter.cpp:18
int checkVerifyLicense(const std::string &license_file, const std::string &license_server)
Function to check and verify that user has license for the simulation.
Definition simlicense.cpp:34
void parseLicenseString(std::string str, std::string &licensee, int &year, int &month, int &day)
Function to parse license string for relevant data.
Definition simlicense.cpp:119