00001 /* 00002 * Copyright (C) 2009, Edmundo Albuquerque de Souza e Silva. 00003 * 00004 * This file may be distributed under the terms of the Q Public License 00005 * as defined by Trolltech AS of Norway and appearing in the file 00006 * LICENSE.QPL included in the packaging of this file. 00007 * 00008 * THIS FILE IS PROVIDED AS IS WITH NO WARRANTY OF ANY KIND, INCLUDING 00009 * THE WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR 00010 * PURPOSE. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, 00011 * INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING 00012 * FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, 00013 * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION 00014 * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. 00015 * 00016 * Thanks: Jose Renato Santos 00017 * 00018 */ 00019 00020 /////////////////////////////////////////////////////////////////////////////// 00021 // RouterTypes.h: Data types used for Router Interface 00022 /////////////////////////////////////////////////////////////////////////////// 00023 00024 #ifndef __ROUTERTYPES_H_ 00025 #define __ROUTERTYPES_H_ 00026 00027 class DiskMgr; 00028 class CSystemManager; 00029 00030 // Router config data 00031 struct RouterConfig 00032 { 00033 short nDisks; 00034 int BlockSize; 00035 int MaxDataRequests; 00036 int MaxPending; 00037 bool CollectMeasures; 00038 double EstimatedTimeParameter; 00039 // Novo parametro que armazena o ponteiro para o objeto da classe DiskMgr. 00040 // ------------------------------------------------------------------------ 00041 DiskMgr *DiskManager; 00042 CSystemManager *SystemManager; 00043 #ifdef __QUEUE_RESP_LOG 00044 // Novo parametro que armazena um ponteiro para o diretorio onde os logs 00045 // serao armazenados. 00046 char *LogsDirectory; 00047 #endif 00048 }; 00049 00050 #endif //__ROUTERTYPES_H_