You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Be consistent with example.
* Skip unneeded indentation.
* Remove incorrect referene.
* Try to be clearer.
* Default for dates.
* Rename class a suggested.
* Apply suggestions from code review
Co-authored-by: Henrik Tidefelt <[email protected]>
record UserLicense "Internal class name, do not use"
2447
+
/*literal*/ constant String libraryKey;
2448
+
/*literal*/ constant String licenseFile = "" "Default mapping if empty";
2449
+
end UserLicense;
2449
2450
\end{lstlisting}
2450
-
See \cref{protection-of-classes} for a description of \lstinline!access!, and note that licensing information uses another record \lstinline!Protection! with different contents given below.
2451
+
See \cref{protection-of-classes} for a description of \lstinline!access!.
2451
2452
The \fmtannotationindex{License} annotation has only an effect on the top of an encrypted class and is then valid for the whole class hierarchy.
2452
2453
(Usually the licensed class is a package.)
2453
2454
The \lstinline!libraryKey! is a secret string from the library vendor and is the protection mechanism so that a user cannot generate his/her own authorization file since the \lstinline!libraryKey! is unknown to him/her.
In order that the protected class can be used either a tool specific license manager, or a license file (called \lstinline!licenseFile!) must be present.
2474
2475
The license file is standardized.
2475
-
It is a Modelica package without classes that has a\lstinline!Protection! annotation of the following form which specifies a sequence of target records, which makes it natural to define start/end dates for different sets of targets individually:
2476
+
It is a Modelica package without classes that has an\lstinline!Authorization! annotation of the following form which specifies a sequence of target records, which makes it natural to define start/end dates for different sets of targets individually:
2476
2477
\begin{lstlisting}[language=modelica]
2477
-
record Protection
2478
-
record Authorization
2479
-
/*literal*/ constant String licensor = "" "Optional string to show information about the licensor";
2480
-
/*literal*/ constant String libraryKey "Matching the key in the class. Must be encrypted and not visible";
2481
-
/*literal*/ constant License license[:] "Definition of the license options and of the access rights";
2482
-
end Authorization;
2483
-
2484
-
record License
2485
-
/*literal*/ constant String licensee = "" "Optional string to show information about the licensee";
2486
-
/*literal*/ constant String id[:] "Unique machine identifications, e.g., MAC addresses";
0 commit comments