|
1 | | -// -------------------------------------------------------------------------------------------------------------------- |
2 | | -// <copyright file="ILocalFile.cs" company="RHEA System S.A."> |
3 | | -// Copyright (c) 2015-2020 RHEA System S.A. |
4 | | -// |
5 | | -// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft |
6 | | -// |
7 | | -// This file is part of CDP4-SDK Community Edition |
8 | | -// |
9 | | -// The CDP4-SDK Community Edition is free software; you can redistribute it and/or |
10 | | -// modify it under the terms of the GNU Lesser General Public |
11 | | -// License as published by the Free Software Foundation; either |
12 | | -// version 3 of the License, or (at your option) any later version. |
13 | | -// |
14 | | -// The CDP4-SDK Community Edition is distributed in the hope that it will be useful, |
15 | | -// but WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | | -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
17 | | -// Lesser General Public License for more details. |
18 | | -// |
19 | | -// You should have received a copy of the GNU Lesser General Public License |
20 | | -// along with this program; if not, write to the Free Software Foundation, |
21 | | -// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
22 | | -// </copyright> |
23 | | -// -------------------------------------------------------------------------------------------------------------------- |
24 | | - |
25 | | -namespace CDP4Common |
26 | | -{ |
27 | | - using CDP4Common.EngineeringModelData; |
28 | | - |
29 | | - /// <summary> |
30 | | - /// An interface for classes containing data that's needed in a file upload scenario. |
31 | | - /// Typically used for <see cref="FileRevision"/> objects. |
32 | | - /// </summary> |
33 | | - public interface ILocalFile |
34 | | - { |
35 | | - /// <summary> |
36 | | - /// Contains the path of the file in the context of the User's PC |
37 | | - /// </summary> |
38 | | - string LocalPath { get; } |
39 | | - |
40 | | - /// <summary> |
41 | | - /// Gets or sets the ContentHash. |
42 | | - /// </summary> |
43 | | - /// <remarks> |
44 | | - /// SHA-1 hash code of the content (byte stream) of this object |
45 | | - /// Note: The SHA-1 cryptographic hash is described in <a href="http://en.wikipedia.org/wiki/SHA-1">http://en.wikipedia.org/wiki/SHA-1</a>. It provides a unique hash to the file content of the file and was selected for future compatibility with a GIT (<a href="http://git-scm.com/">http://git-scm.com/</a>) version controlled file store. Implementations of E-TM-10-25 need to provide a way to associate a SHA-1 hash to the content of a file. Whether or not the content of two FileRevisions differs can then be determined by just comparing the SHA-1 hashes without the need for having access to the actual file content itself. |
46 | | - /// </remarks> |
47 | | - string ContentHash { get; } |
48 | | - } |
49 | | -} |
| 1 | +// -------------------------------------------------------------------------------------------------------------------- |
| 2 | +// <copyright file="ILocalFile.cs" company="RHEA System S.A."> |
| 3 | +// Copyright (c) 2015-2020 RHEA System S.A. |
| 4 | +// |
| 5 | +// Author: Sam Gerené, Merlin Bieze, Alex Vorobiev, Naron Phou, Alexander van Delft |
| 6 | +// |
| 7 | +// This file is part of CDP4-SDK Community Edition |
| 8 | +// |
| 9 | +// The CDP4-SDK Community Edition is free software; you can redistribute it and/or |
| 10 | +// modify it under the terms of the GNU Lesser General Public |
| 11 | +// License as published by the Free Software Foundation; either |
| 12 | +// version 3 of the License, or (at your option) any later version. |
| 13 | +// |
| 14 | +// The CDP4-SDK Community Edition is distributed in the hope that it will be useful, |
| 15 | +// but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 | +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 | +// Lesser General Public License for more details. |
| 18 | +// |
| 19 | +// You should have received a copy of the GNU Lesser General Public License |
| 20 | +// along with this program; if not, write to the Free Software Foundation, |
| 21 | +// Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
| 22 | +// </copyright> |
| 23 | +// -------------------------------------------------------------------------------------------------------------------- |
| 24 | + |
| 25 | +namespace CDP4Common |
| 26 | +{ |
| 27 | + using CDP4Common.EngineeringModelData; |
| 28 | + |
| 29 | + /// <summary> |
| 30 | + /// An interface for classes containing data that's needed in a file upload scenario. |
| 31 | + /// Typically used for <see cref="FileRevision"/> objects. |
| 32 | + /// </summary> |
| 33 | + public interface ILocalFile |
| 34 | + { |
| 35 | + /// <summary> |
| 36 | + /// Contains the path of the file in the context of the User's PC |
| 37 | + /// </summary> |
| 38 | + string LocalPath { get; } |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// Gets or sets the ContentHash. |
| 42 | + /// </summary> |
| 43 | + /// <remarks> |
| 44 | + /// SHA-1 hash code of the content (byte stream) of this object |
| 45 | + /// Note: The SHA-1 cryptographic hash is described in <a href="http://en.wikipedia.org/wiki/SHA-1">http://en.wikipedia.org/wiki/SHA-1</a>. It provides a unique hash to the file content of the file and was selected for future compatibility with a GIT (<a href="http://git-scm.com/">http://git-scm.com/</a>) version controlled file store. Implementations of E-TM-10-25 need to provide a way to associate a SHA-1 hash to the content of a file. Whether or not the content of two FileRevisions differs can then be determined by just comparing the SHA-1 hashes without the need for having access to the actual file content itself. |
| 46 | + /// </remarks> |
| 47 | + string ContentHash { get; } |
| 48 | + } |
| 49 | +} |
0 commit comments