libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo es el conjunto de objetos y funciones, que permiten ejecutar las operaciones básicas de la plataforma Moldeo, y que compone su núcleo.
 Todo Clases Namespaces Archivos Funciones Variables 'typedefs' Enumeraciones Valores de enumeraciones Amigas 'defines' Grupos Páginas
moDebugManager.cpp
Ir a la documentación de este archivo.
1 /*******************************************************************************
2 
3  moDebugManager.cpp
4 
5  ****************************************************************************
6  * *
7  * This source is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This code is distributed in the hope that it will be useful, but *
13  * WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15  * General Public License for more details. *
16  * *
17  * A copy of the GNU General Public License is available on the World *
18  * Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
19  * obtain it by writing to the Free Software Foundation, *
20  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21  * *
22  ****************************************************************************
23 
24  Copyright(C) 2006 Fabricio Costa
25 
26  Authors:
27  Fabricio Costa
28 
29 
30 *******************************************************************************/
31 
32 #include "moDebugManager.h"
33 
34 //===========================================
35 //
36 // moGUIManager
37 //
38 //===========================================
39 
40 
42 
45 
46  SetName("debugmanager");
47  SetLabelName("debugmanager");
48 
49 }
50 
51 
53 
54 
55 }
56 
59  return true;
60 }
61 
64  return true;
65 }
66 
67 
68 void moDebugManager::Error( moText p_text ) {
69  MODebug2->Error(p_text);
70 }
71 
73 
74  MODebug2->Message( p_text );
75 }
76 
77 void moDebugManager::Log( moText p_text ) {
78  MODebug2->Log( p_text );
79 }
80 
81 void moDebugManager::Push( moText p_text ) {
82  MODebug2->Push( p_text );
83 }
84 
90  return MODebug2->Pop();
91 }
92 
94  return MODebug2->Count();
95 }
96 
97 
virtual ~moDebugManager()
static void Push(moText p_text)
static void Message(moText p_text)
Anuncia un mensaje al usuario además de guardarlo en el log de texto.
moText Pop()
Saca y devuelve el primer texto ingresado a la lista.
Definition: moAbstract.h:126
void Error(moText p_text)
Anuncia y registra un error.
Definition: moAbstract.cpp:79
void SetName(const moText &p_name)
MOint Count()
Devuelve la cantidad de mensajes almacenados.
Definition: moAbstract.h:136
#define MOboolean
Definition: moTypes.h:385
static void Error(moText p_text)
Anuncia un error.
void SetResourceType(moResourceType p_restype)
clase de para manejar textos
Definition: moText.h:75
Dispositivo de entrada/salida, típicamente, interfaces humanas de IO y datos ( teclado, mouse, tableta, tcp, udp, serial )
Definition: moTypes.h:532
void Log(moText p_text)
Escribe un mensaje en el archivo de registro (log)
Definition: moAbstract.cpp:123
static void Log(moText p_text)
Escribe un mensaje en el archivo de registro (log)
#define MOint
Definition: moTypes.h:388
virtual MOboolean Init()
virtual MOboolean Finish()
void SetLabelName(const moText &p_labelname)
static moDebug * MODebug2
Clase de impresión de errores para depuración.
Definition: moAbstract.h:225
void Push(moText p_text)
Apila el mensaje dentro de la pila de mensajes.
Definition: moAbstract.h:115
static moText Pop()
void Message(moText p_text)
Anuncia un mensaje al usuario además de guardarlo en el log de texto.
Definition: moAbstract.cpp:114
void SetType(moMoldeoObjectType p_type)
static MOint Count()