00001 /*======================================================================= 00002 *** THE CONTENT OF THIS WORK IS PROPRIETARY TO FEI S.A.S, (FEI S.A.S.), *** 00003 *** AND IS DISTRIBUTED UNDER A LICENSE AGREEMENT. *** 00004 *** *** 00005 *** REPRODUCTION, DISCLOSURE, OR USE, IN WHOLE OR IN PART, OTHER THAN AS *** 00006 *** SPECIFIED IN THE LICENSE ARE NOT TO BE UNDERTAKEN EXCEPT WITH PRIOR *** 00007 *** WRITTEN AUTHORIZATION OF FEI S.A.S. *** 00008 *** *** 00009 *** RESTRICTED RIGHTS LEGEND *** 00010 *** USE, DUPLICATION, OR DISCLOSURE BY THE GOVERNMENT OF THE CONTENT OF THIS *** 00011 *** WORK OR RELATED DOCUMENTATION IS SUBJECT TO RESTRICTIONS AS SET FORTH IN *** 00012 *** SUBPARAGRAPH (C)(1) OF THE COMMERCIAL COMPUTER SOFTWARE RESTRICTED RIGHT *** 00013 *** CLAUSE AT FAR 52.227-19 OR SUBPARAGRAPH (C)(1)(II) OF THE RIGHTS IN *** 00014 *** TECHNICAL DATA AND COMPUTER SOFTWARE CLAUSE AT DFARS 52.227-7013. *** 00015 *** *** 00016 *** COPYRIGHT (C) 1996-2014 BY FEI S.A.S, *** 00017 *** BORDEAUX, FRANCE *** 00018 *** ALL RIGHTS RESERVED *** 00019 **=======================================================================*/ 00020 /*======================================================================= 00021 ** Author : VSG (Sep 2014) 00022 **=======================================================================*/ 00023 00024 00025 #ifndef _SO_CAD_FILE_FORMAT_H_ 00026 #define _SO_CAD_FILE_FORMAT_H_ 00027 00028 #include <Inventor/SbBasic.h> 00029 00030 // InventorCAD_EXPORTS is defined only when building fei_inventor_io_cad library 00031 #ifdef InventorCAD_EXPORTS 00032 # define VC_DLL_EXPORT 00033 #else 00034 # define VC_DLL_IMPORT 00035 #endif 00036 00037 #include <Inventor/io/CAD/SoInventorCADLibName.h> 00038 00039 #ifdef _WIN32 00040 # ifndef InventorCAD_EXPORTS 00041 # ifndef OIV_DISABLE_AUTOLINK 00042 # pragma comment(lib,__INVENTORCADLIB) 00043 # endif 00044 # endif 00045 #endif 00046 00047 #include <Inventor/SoModule.h> 00048 SO_MODULE_HEADER(SoCADFileFormat, __INVENTORCADDLL) 00049 00050 00066 class SoCADFileFormat { 00067 00068 public: 00069 00076 static void init(); 00077 00086 static void finish(); 00087 00091 static const char *getProductName(); 00092 00096 static const char *getVersion(); 00097 00102 static bool isInitialized() 00103 { return (s_initRefCount>0); } 00104 00105 private: 00106 00107 // reference counter on the lib. 00108 static int s_initRefCount; 00109 00110 }; 00111 /*---------------------------------------------------------------------------*/ 00112 00113 // Declare plugin entry points for dynamic plugin loading 00114 extern "C" void initPlugin(); 00115 extern "C" void exitPlugin(); 00116 00117 #endif // _SO_CAD_FILE_FORMAT_H_ 00118 00119