Diana  0.8.3
MemoryManager.hpp
00001 /* -----------------------------------------------------------------------------
00002  *  Diana process modelling, simulation and analysis software
00003  *  Copyright (c) 2005, Michael Krasnyk
00004  *  All rights reserved.
00005  *
00006  *  This file is a part of Diana process modelling, simulation and analysis software
00007  *
00008  *  Diana is free software; you can redistribute it and/or modify it
00009  *  under the terms of the GNU General Public License as published
00010  *  by the Free Software Foundation (see accompanying file LICENSE)
00011  * -----------------------------------------------------------------------------
00012  *  $Id$
00013  * -----------------------------------------------------------------------------
00014  *  Description:
00015  */
00016 
00017 
00018  
00019 #ifndef __MEMORY_MANAGER_HPP
00020 #define __MEMORY_MANAGER_HPP
00021 
00022 #include "mpi.h"
00023 
00024 #include "File.hpp"
00025 #include "MemoryBank.hpp"
00026 #include "NumericObject.hpp"
00027 #include <Diana.hpp>
00028 
00029 class CMemoryManager
00030 {
00031 private:
00033    std::vector< std::vector<CMemoryBank*> > m_MemoryBanks; 
00034 
00035 public:
00036    CMemoryManager();
00037    ~CMemoryManager();
00038    
00039    void CreateMemoryBanks( std::vector<CNumericObject*>* _Objects,
00040       const CapeString& _szConnectionsFileName )
00041       throw (Common::Error::ECapeUnknown, Common::Error::ECapeInvalidArgument);
00042 };
00043 
00044 
00045 #endif