iLab Neuromorphic Robotics Toolkit  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
MacrosDefine.H File Reference
#include <nrt/Core/Typing/Macros.H>
#include <string.h>

Author
Laurent Itti

License

// ////////////////////////////////////////////////////////////////////////
//              The iLab Neuromorphic Robotics Toolkit (NRT)             //
// Copyright 2010-2012 by the University of Southern California (USC)    //
//                          and the iLab at USC.                         //
//                                                                       //
//                iLab - University of Southern California               //
//                Hedco Neurociences Building, Room HNB-10               //
//                    Los Angeles, Ca 90089-2520 - USA                   //
//                                                                       //
//      See http://ilab.usc.edu for information about this project.      //
// ////////////////////////////////////////////////////////////////////////
// This file is part of The iLab Neuromorphic Robotics Toolkit.          //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is free software: you can      //
// redistribute it and/or modify it under the terms of the GNU General   //
// Public License as published by the Free Software Foundation, either   //
// version 3 of the License, or (at your option) any later version.      //
//                                                                       //
// The iLab Neuromorphic Robotics Toolkit is distributed in the hope     //
// that it will be useful, but WITHOUT ANY WARRANTY; without even the    //
// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR       //
// PURPOSE.  See the GNU General Public License for more details.        //
//                                                                       //
// You should have received a copy of the GNU General Public License     //
// along with The iLab Neuromorphic Robotics Toolkit.  If not, see       //
// <http://www.gnu.org/licenses/>.                                       //
// ////////////////////////////////////////////////////////////////////////

Definition in file MacrosDefine.H.

Go to the source code of this file.

Macros

#define BBTHROW(errty)
 Throw a Blackboard Exception, BBWHAT should be defined prior to use. More...
 
#define BBTHROWX(errty, msg)
 Throw a Blackboard Exception, with extra message, BBWHAT should be defined prior to use. More...
 
#define BBTHROWXERRNO(errty, msg)
 Throw a Blackboard Exception, with extra message, BBWHAT should be defined prior to use. More...
 

Macro Definition Documentation

#define BBTHROW (   errty)
Value:
throw nrt::exception::\
BlackboardException(nrt::exception::BlackboardException::errty, NRT_MACRO_WHERE, BBWHAT)

Throw a Blackboard Exception, BBWHAT should be defined prior to use.

Definition at line 40 of file MacrosDefine.H.

Referenced by nrt::Blackboard::addModule(), nrt::MessageCheckerCore< Checking >::check(), nrt::MessagePosterCore< Posting >::createSubPosters(), nrt::MessageSubscriberCore< Subscription >::createSubSubscribers(), nrt::blackboard::RemoteCommand::get(), nrt::Blackboard::getModule(), and nrt::blackboard::RemoteCommand::serget().

#define BBTHROWX (   errty,
  msg 
)
Value:
throw nrt::exception::\
BlackboardException(nrt::exception::BlackboardException::errty, NRT_MACRO_WHERE,\
std::string(BBWHAT)+": "+std::string(msg))

Throw a Blackboard Exception, with extra message, BBWHAT should be defined prior to use.

Definition at line 44 of file MacrosDefine.H.

Referenced by nrt::MessageCheckerCore< Checking >::check(), nrt::blackboard::RemoteCommand::get(), nrt::Blackboard::getModule(), nrt::blackboard::RemoteCommand::serget(), nrt::blackboard::RemoteCommand::serset(), and nrt::blackboard::RemoteCommand::set().

#define BBTHROWXERRNO (   errty,
  msg 
)
Value:
throw nrt::exception::\
BlackboardException(nrt::exception::BlackboardException::errty, NRT_MACRO_WHERE,\
std::string(BBWHAT) + ": " + std::string(msg) + std::string(":") + strerror(errno))

Throw a Blackboard Exception, with extra message, BBWHAT should be defined prior to use.

Definition at line 49 of file MacrosDefine.H.