FEI  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
fei_LibraryWrapper.hpp
1 #ifndef _LibraryWrapper_hpp_
2 #define _LibraryWrapper_hpp_
3 
4 /*--------------------------------------------------------------------*/
5 /* Copyright 2005 Sandia Corporation. */
6 /* Under the terms of Contract DE-AC04-94AL85000, there is a */
7 /* non-exclusive license for use of this work by or on behalf */
8 /* of the U.S. Government. Export of this program may require */
9 /* a license from the United States Government. */
10 /*--------------------------------------------------------------------*/
11 
12 #include <fei_macros.hpp>
13 #include <fei_SharedPtr.hpp>
14 
15 #include <fei_LinearSystemCore.hpp>
16 #include <fei_FiniteElementData.hpp>
17 
18 class LibraryWrapper {
19  public:
20  LibraryWrapper(fei::SharedPtr<LinearSystemCore> lsc);
21  LibraryWrapper(fei::SharedPtr<FiniteElementData> feData);
22  virtual ~LibraryWrapper();
23 
24  bool haveLinearSystemCore() { return( haveLinearSystemCore_ ); }
25  bool haveFiniteElementData(){ return( haveFiniteElementData_); }
26 
27  fei::SharedPtr<LinearSystemCore> getLinearSystemCore() { return( lsc_ ); }
28  fei::SharedPtr<FiniteElementData> getFiniteElementData() { return( feData_ ); }
29 
30  private:
31  bool haveLinearSystemCore_;
32  bool haveFiniteElementData_;
35 };
36 
37 #endif