LicenseSpring C++ SDK
Easily add Software Licensing to your application
UserLicensesData.h
Go to the documentation of this file.
1 #ifndef LS_USER_LICENSE_DATA_H
2 #define LS_USER_LICENSE_DATA_H
3 
4 #ifdef _MSC_VER
5 #pragma once
6 #pragma warning( push )
7 #pragma warning( disable : 4251 )
8 #endif
9 
10 #include <memory.h>
11 #include "UserLicense.h"
12 #include "LicenseUser.h"
13 #include "APIDef.h"
14 
15 namespace LicenseSpring
16 {
19  {
20  public:
21  using ptr_t = std::shared_ptr<UserLicensesData>;
22 
25 
31  UserLicensesData(const UserLicense::ptr_t& userLicense, const LicenseUser::ptr_t& licenseUser );
32 
35  UserLicense::ptr_t userLicense() const;
36 
39  LicenseUser::ptr_t licenseUser() const;
40 
41  private:
42  UserLicense::ptr_t m_license;
43  LicenseUser::ptr_t m_user;
44  };
45 }
46 
47 #ifdef _MSC_VER
48 #pragma warning( pop )
49 #endif
50 
51 #endif //LS_USER_LICENSE_DATA_H
std::shared_ptr< UserLicense > ptr_t
Definition: UserLicense.h:24
std::shared_ptr< LicenseUser > ptr_t
Definition: LicenseUser.h:21
Contains information about a license assigned to a user for the current product.
std::shared_ptr< UserLicensesData > ptr_t
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition: APIDef.h:22