BusBoy  2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Classes | Namespaces | Macros
AlgorithmContext.h File Reference
#include <string>
#include <sstream>
#include "context/Logger.h"
#include "context/MessageConsumer.h"
#include "context/ProgressReporter.h"

Go to the source code of this file.

Classes

class  BUSBOY::AlgorithmContext
 Provides algorithms with access to various services provided by the framework. More...
 

Namespaces

namespace  BUSBOY
 Copyright 2014 Google Inc.
 

Macros

#define BUSBOY_ALGO_LOG_CPP(context, level, msg)
 Copyright 2014 Google Inc. More...
 
#define BUSBOY_ALGO_LOG_C(context, level, format, args...)
 Allows algorithms to log a formatted message C style (printf) with the code location included. More...
 

Macro Definition Documentation

#define BUSBOY_ALGO_LOG_C (   context,
  level,
  format,
  args... 
)
Value:
{ \
(context).log( __FILE__, __LINE__, level, format, ##args); \
}

Allows algorithms to log a formatted message C style (printf) with the code location included.

Parameters
contexttype is AlgorithmContext&
leveltype is Logger::Level
formattype is const char*
#define BUSBOY_ALGO_LOG_CPP (   context,
  level,
  msg 
)
Value:
{ \
std::ostringstream _ss; \
_ss << msg; \
(context).log( __FILE__, __LINE__, level, _ss.str()); \
}

Copyright 2014 Google Inc.

All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Allows algorithms to log a formatted message C++ style in one line with the code location included.

Parameters
contexttype is AlgorithmContext&
leveltype is Logger::Level
msgany expression that can be on the right hand side of "<<" operator

Copyright 2014 Google Inc. All rights reserved.