1 //     ____   ______ __
2 //    / __ \ / ____// /
3 //   / /_/ // /    / /
4 //  / ____// /___ / /___   PixInsight Class Library
5 // /_/     \____//_____/   PCL 2.1.19
6 // ----------------------------------------------------------------------------
7 // Standard RAW File Format Module Version 1.5.2
8 // ----------------------------------------------------------------------------
9 // RawModule.cpp - Released 2019-11-07T11:00:12Z
10 // ----------------------------------------------------------------------------
11 // This file is part of the standard RAW PixInsight module.
12 //
13 // Copyright (c) 2003-2019 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  2
56 #define MODULE_VERSION_BUILD     0
57 #define MODULE_VERSION_LANGUAGE  eng
58 
59 #define MODULE_RELEASE_YEAR      2019
60 #define MODULE_RELEASE_MONTH     11
61 #define MODULE_RELEASE_DAY       7
62 
63 #include "RawModule.h"
64 #include "RawFormat.h"
65 
66 namespace pcl
67 {
68 
69 // ----------------------------------------------------------------------------
70 
71 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 
82 IsoString RawModule::Name() const
83 {
84    return "RAW_compat";
85 }
86 
87 // ----------------------------------------------------------------------------
88 
89 String RawModule::Description() const
90 {
91    return "PixInsight Standard RAW File Format Module (compatibility version)";
92 }
93 
94 // ----------------------------------------------------------------------------
95 
96 String RawModule::Company() const
97 {
98    return "Pleiades Astrophoto";
99 }
100 
101 // ----------------------------------------------------------------------------
102 
103 String RawModule::Author() const
104 {
105    return "Juan Conejero, PTeam";
106 }
107 
108 // ----------------------------------------------------------------------------
109 
110 String RawModule::Copyright() const
111 {
112    return "Copyright (c) 2006-2019, Pleiades Astrophoto";
113 }
114 
115 // ----------------------------------------------------------------------------
116 
117 String RawModule::TradeMarks() const
118 {
119    return "PixInsight";
120 }
121 
122 // ----------------------------------------------------------------------------
123 
124 String RawModule::OriginalFileName() const
125 {
126 #ifdef __PCL_FREEBSD
127    return "RAW-pxm.so";
128 #endif
129 #ifdef __PCL_LINUX
130    return "RAW-pxm.so";
131 #endif
132 #ifdef __PCL_MACOSX
133    return "RAW-pxm.dylib";
134 #endif
135 #ifdef __PCL_WINDOWS
136    return "RAW-pxm.dll";
137 #endif
138 }
139 
140 // ----------------------------------------------------------------------------
141 
142 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 PCL_MODULE_EXPORT int InstallPixInsightModule( int mode )
154 {
155    new pcl::RawModule;
156 
157    if ( mode == pcl::InstallMode::FullInstall )
158       new pcl::RawFormat;
159 
160    return 0;
161 }
162 
163 // ----------------------------------------------------------------------------
164 // EOF RawModule.cpp - Released 2019-11-07T11:00:12Z
165