LicenseSpring C++ SDK
Easily add Software Licensing to your application
Loading...
Searching...
No Matches
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
15namespace 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
36
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
#define LS_API
Macros that expands to dllexport, dllimport or nothing on non Windows platforms or in case of static ...
Definition APIDef.h:22
std::shared_ptr< LicenseUser > ptr_t
Definition LicenseUser.h:21
std::shared_ptr< UserLicense > ptr_t
Definition UserLicense.h:24
Contains information about a license assigned to a user for the current product.
UserLicensesData(const UserLicense::ptr_t &userLicense, const LicenseUser::ptr_t &licenseUser)
Constructs UserLicensesData with given UserLicense and LicenseUsers pointers.
std::shared_ptr< UserLicensesData > ptr_t
LicenseUser::ptr_t licenseUser() const
User data.
UserLicensesData()
Default constructor, creates empty object.
UserLicense::ptr_t userLicense() const
License data.