1 // ____ ______ __
2 // / __ \ / ____// /
3 // / /_/ // / / /
4 // / ____// /___ / /___ PixInsight Class Library
5 // /_/ \____//_____/ PCL 2.1.19
6 // ----------------------------------------------------------------------------
7 // Standard RAW_compat File Format Module Version 1.5.3
8 // ----------------------------------------------------------------------------
9 // RawModule.cpp - Released 2020-01-14T11:57:23Z
10 // ----------------------------------------------------------------------------
11 // This file is part of the standard RAW_compat PixInsight module.
12 //
13 // Copyright (c) 2003-2020 Pleiades Astrophoto S.L. All Rights Reserved.
14 //
15 // Redistribution and use in both source and binary forms, with or without
16 // modification, is permitted provided that the following conditions are met:
17 //
18 // 1. All redistributions of source code must retain the above copyright
19 // notice, this list of conditions and the following disclaimer.
20 //
21 // 2. All redistributions in binary form must reproduce the above copyright
22 // notice, this list of conditions and the following disclaimer in the
23 // documentation and/or other materials provided with the distribution.
24 //
25 // 3. Neither the names "PixInsight" and "Pleiades Astrophoto", nor the names
26 // of their contributors, may be used to endorse or promote products derived
27 // from this software without specific prior written permission. For written
28 // permission, please contact info@pixinsight.com.
29 //
30 // 4. All products derived from this software, in any form whatsoever, must
31 // reproduce the following acknowledgment in the end-user documentation
32 // and/or other materials provided with the product:
33 //
34 // "This product is based on software from the PixInsight project, developed
35 // by Pleiades Astrophoto and its contributors (http://pixinsight.com/)."
36 //
37 // Alternatively, if that is where third-party acknowledgments normally
38 // appear, this acknowledgment must be reproduced in the product itself.
39 //
40 // THIS SOFTWARE IS PROVIDED BY PLEIADES ASTROPHOTO AND ITS CONTRIBUTORS
41 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
42 // TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
43 // PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL PLEIADES ASTROPHOTO OR ITS
44 // CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
45 // EXEMPLARY OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, BUSINESS
46 // INTERRUPTION; PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; AND LOSS OF USE,
47 // DATA OR PROFITS) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
48 // CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
49 // ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
50 // POSSIBILITY OF SUCH DAMAGE.
51 // ----------------------------------------------------------------------------
52
53 #define MODULE_VERSION_MAJOR 1
54 #define MODULE_VERSION_MINOR 5
55 #define MODULE_VERSION_REVISION 3
56 #define MODULE_VERSION_BUILD 0
57 #define MODULE_VERSION_LANGUAGE eng
58
59 #define MODULE_RELEASE_YEAR 2020
60 #define MODULE_RELEASE_MONTH 1
61 #define MODULE_RELEASE_DAY 14
62
63 #include "RawModule.h"
64 #include "RawFormat.h"
65
66 namespace pcl
67 {
68
69 // ----------------------------------------------------------------------------
70
Version() const71 const char* RawModule::Version() const
72 {
73 return PCL_MODULE_VERSION( MODULE_VERSION_MAJOR,
74 MODULE_VERSION_MINOR,
75 MODULE_VERSION_REVISION,
76 MODULE_VERSION_BUILD,
77 MODULE_VERSION_LANGUAGE );
78 }
79
80 // ----------------------------------------------------------------------------
81
Name() const82 IsoString RawModule::Name() const
83 {
84 return "RAW_compat";
85 }
86
87 // ----------------------------------------------------------------------------
88
Description() const89 String RawModule::Description() const
90 {
91 return "PixInsight Standard RAW File Format Module (compatibility version)";
92 }
93
94 // ----------------------------------------------------------------------------
95
Company() const96 String RawModule::Company() const
97 {
98 return "Pleiades Astrophoto";
99 }
100
101 // ----------------------------------------------------------------------------
102
Author() const103 String RawModule::Author() const
104 {
105 return "Juan Conejero, PTeam";
106 }
107
108 // ----------------------------------------------------------------------------
109
Copyright() const110 String RawModule::Copyright() const
111 {
112 return "Copyright (c) 2006-2020, Pleiades Astrophoto";
113 }
114
115 // ----------------------------------------------------------------------------
116
TradeMarks() const117 String RawModule::TradeMarks() const
118 {
119 return "PixInsight";
120 }
121
122 // ----------------------------------------------------------------------------
123
OriginalFileName() const124 String RawModule::OriginalFileName() const
125 {
126 #ifdef __PCL_FREEBSD
127 return "RAW-compat-pxm.so";
128 #endif
129 #ifdef __PCL_LINUX
130 return "RAW-compat-pxm.so";
131 #endif
132 #ifdef __PCL_MACOSX
133 return "RAW-compat-pxm.dylib";
134 #endif
135 #ifdef __PCL_WINDOWS
136 return "RAW-compat-pxm.dll";
137 #endif
138 }
139
140 // ----------------------------------------------------------------------------
141
GetReleaseDate(int & year,int & month,int & day) const142 void RawModule::GetReleaseDate( int& year, int& month, int& day ) const
143 {
144 year = MODULE_RELEASE_YEAR;
145 month = MODULE_RELEASE_MONTH;
146 day = MODULE_RELEASE_DAY;
147 }
148
149 // ----------------------------------------------------------------------------
150
151 } // pcl
152
153 // -------------------------------------------------------------------------
154
InstallPixInsightModule(int mode)155 PCL_MODULE_EXPORT int InstallPixInsightModule( int mode )
156 {
157 new pcl::RawModule;
158
159 if ( mode == pcl::InstallMode::FullInstall )
160 new pcl::RawFormat;
161
162 return 0;
163 }
164
165 // ----------------------------------------------------------------------------
166 // EOF RawModule.cpp - Released 2020-01-14T11:57:23Z
167