Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages  

hyp.file.implstd.h

00001 /*
00002 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00003  Ephydryne Components.
00004  Ephydryne is a part of the Hyperion Project.
00005 ----------------------------------------------------------
00006  Copyright (c) 2001 Pierre Rebours.
00007 
00008  This library is free software; you can redistribute it and/or
00009  modify it under the terms of the GNU Lesser General Public
00010  License as published by the Free Software Foundation; either
00011  version 2.1 of the License, or (at your option) any later version.
00012 
00013  This library is distributed in the hope that it will be useful,
00014  but WITHOUT ANY WARRANTY; without even the implied warranty of
00015  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00016  
00017  See hyp.license.txt file for more information about the license.
00018  
00019  Web: http://lagrandeporte.multimania.com/hyperion
00020  Email: pierre_rebours@yahoo.com
00021 ----------------------------------------------------------
00022  CVS
00023  $Log$
00024  
00025  Creation 19/04/01 Pierre Rebours
00026 \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
00027 */
00028 
00029 
00030 #ifndef _hyp_file_implstd_h_
00031 #define _hyp_file_implstd_h_
00032 
00042 class CStdImplFile :
00043 public CImplBase,
00044 public IShowMeshObject,
00045 hyp_ker::CUnknown
00046 {
00047 public:
00049         CStdImplFile(hyp_ker::IUnknown*);
00050         virtual ~CStdImplFile();
00051         hyp_DECLARE_IUNKNOWN
00052         virtual hyp_ker::com_result NondelegatingQueryInterface(const hyp_ker::hypIID&,void**);
00053         static hyp_ker::com_result CreateInstance(hyp_ker::IUnknown* ,hyp_ker::CUnknown**);
00054         hyp_ker::com_result Init(void); 
00055         void FinalRelease(void);
00057 
00061         virtual void SetObject(hyp_ker::IUnknown* pObject) {
00062                 CImplBase::SetObject(pObject);
00063         }
00065         
00069         virtual void SetOutput(const std::string&);
00070         virtual void SetOutput(const std::ostream&);
00071         virtual void CloseOutput();     
00072         virtual void ShowNodes();
00073         virtual void ShowSides();
00074         virtual void ShowElements();
00075         virtual void ShowMatrix();
00076         virtual void ShowMatrixDim();
00077         virtual void ShowForceMask();
00078         virtual void ShowRenderMask();
00079         virtual void ShowDisplacements();
00080         virtual void ShowGlobalDisplacements();
00081         virtual void ShowForces();
00082         virtual void ShowGlobalForces();
00083         virtual void ShowAll();
00085 
00086 private:        
00087         void TEST_OUTPUT(void) {
00088                 if(!m_pStream) hyp_THROW_COM2(hyp_ker::com_false, ("Output not initialized") );
00089         }
00090         void OpenFile(const std::string&);
00091         void CloseFile(void);
00092 
00093         void ShowMask(const t_mask_array&,const std::string&);
00094         void ShowArray(const t_real_array&,const std::string&);
00095         std::ostream* m_pStream;
00096 
00097 
00098 };
00099 
00100 
00101 #endif  

Top of Page
written by Pierre Rebours © 2000-2001. Terms of Use.