Home | Develop | Download | Contact
example_print_messages.cpp

Programa para el testeo de las funciones.Para compilar o código example_print_messages.cpp:

g++ -static -o example_print_messages example_print_messages.cpp -lpdsramm

Para executar o programa:

./example_print_messages

Retornando por consola:

----ERROR :: example_print_messages.cpp::main::line 28
----ERROR :: testing error
--WARNING :: testing warning
-----INFO :: testing info number 1

Código example_print_messages.cpp:

#include <iostream>
#include <Pds/Ra>
int main(void)
{
pds_print_error_message("testing error");
pds_print_warning_message("testing warning");
pds_print_info_message("testing info"<<" number "<< 1);
return 0;
}
#define pds_print_error_message(msg)
Definition: RaDefines.hpp:64
#define pds_print_info_message(msg)
Definition: RaDefines.hpp:86
#define pds_print_warning_message(msg)
Definition: RaDefines.hpp:76

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed