Content-Based Networking Simulation Library Documentation (v. 1.2.1)

Namespaces | Defines | Functions | Variables

logging.h File Reference

#include <cassert>
#include <iostream>
#include <siena/forwarding.h>
#include <siena/ssimp_types.h>

Go to the source code of this file.

Namespaces

namespace  cbnsim
 

Namespace containing classes and procedures provided by the cbnsim library.


Defines

#define CBNDEBUG(u)
#define CBNINFO(u)   if( cbnsim::g_info_on ) { std::cout << "INFO: " << u << endl; }
#define CBNERROR(u)   if( cbnsim::g_error_on ) { std::cerr << "ERROR: " << u << endl; }
#define CBNASSERT(exp, msg)   if(!(exp)){CBNERROR(msg);assert(exp);}

Functions

void cbnsim::sff_print (const SimplifyingPredicate &pred, siena::if_t id=0)
 Function to print a predicate in the format expected by the sff program.
void cbnsim::sff_print (const Message &msg)
 Function to print a message in the format expected by the sff program.

Variables

bool cbnsim::g_debug_on
bool cbnsim::g_info_on
bool cbnsim::g_error_on

Detailed Description

This file contains preprocessor macros and function prototypes for printing generic debugging and error messages and also for printing predicates and messages in the format that the sff program can read in.