Changeset 65:f3be101f8176 in rrlib_logging


Ignore:
Timestamp:
07.10.2011 17:49:19 (9 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Message:

Updated and added old/missing copyright notes

Files:
14 edited

Legend:

Unmodified
Added
Removed
  • definitions.cpp

    r38 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • definitions.h

    r64 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
     
    108108#define RRLIB_LOG_GET_DOMAIN_I(domain...) \ 
    109109  rrlib::logging::GetLogDomain(RRLIB_DEFAULT_LOG_DOMAIN_NAME, ## domain) \ 
    110  
     110    
    111111#define RRLIB_LOG_GET_DOMAIN(domain, args...) \ 
    112112  RRLIB_LOG_GET_DOMAIN_I(domain) 
     
    114114#define RRLIB_LOG_STREAM_CALL(level, args...) \ 
    115115  ((level) <= RRLIB_LOG_GET_DOMAIN(args)->GetMaxMessageLevel() ? RRLIB_LOG_GET_DOMAIN(args)->GetMessageStream(GetLogDescription(), __FUNCTION__, __FILE__, __LINE__, level).Evaluate(args) : RRLIB_LOG_GET_DOMAIN(args)->GetMessageStream(GetLogDescription(), __FUNCTION__, __FILE__, __LINE__, level)) \ 
    116  
     116    
    117117#define RRLIB_LOG_STREAM_CALL_STATIC(level, args...) \ 
    118118  ((level) <= RRLIB_LOG_GET_DOMAIN(args)->GetMaxMessageLevel() ? RRLIB_LOG_GET_DOMAIN(args)->GetMessageStream("<static>", __FUNCTION__, __FILE__, __LINE__, level).Evaluate(args) : RRLIB_LOG_GET_DOMAIN(args)->GetMessageStream("<static>", __FUNCTION__, __FILE__, __LINE__, level)) \ 
    119  
     119    
    120120#define RRLIB_LOG_PRINT_CALL(level, args...) \ 
    121121  do \ 
     
    126126    } \ 
    127127  } while (0) \ 
    128  
     128      
    129129#define RRLIB_LOG_PRINT_CALL_STATIC(level, args...) \ 
    130130  do \ 
     
    135135    } \ 
    136136  } while (0) \ 
    137  
     137      
    138138#define RRLIB_LOG_PRINTF_CALL(level, args...) \ 
    139139  do \ 
     
    144144    } \ 
    145145  } while (0) \ 
    146  
     146      
    147147#define RRLIB_LOG_PRINTF_CALL_STATIC(level, args...) \ 
    148148  do \ 
     
    153153    } \ 
    154154  } while (0) \ 
    155  
     155      
    156156//---------------------------------------------------------------------- 
    157157// The macro interface to the logging library 
     
    168168#define RRLIB_LOG_STREAM(level, args...) \ 
    169169  RRLIB_LOG_STREAM_CALL(level, args) \ 
    170  
     170    
    171171#define RRLIB_LOG_PRINT(level, args...) \ 
    172     do \ 
    173     { \ 
    174       if ((level) <= rrlib::logging::eLL_DEBUG) \ 
    175       { \ 
    176         RRLIB_LOG_PRINT_CALL(level, args); \ 
    177       } \ 
    178     } while (0) \ 
    179  
     172  do \ 
     173  { \ 
     174    if ((level) <= rrlib::logging::eLL_DEBUG) \ 
     175    { \ 
     176      RRLIB_LOG_PRINT_CALL(level, args); \ 
     177    } \ 
     178  } while (0) \ 
     179      
    180180/*! Macro to get a stream for messages using operator << from static context 
    181181 * 
     
    187187#define RRLIB_LOG_STREAM_STATIC(level, args...) \ 
    188188  RRLIB_LOG_STREAM_CALL_STATIC(level, args) \ 
    189  
     189    
    190190#define RRLIB_LOG_PRINT_STATIC(level, args...) \ 
    191     do \ 
    192     { \ 
    193       if ((level) <= rrlib::logging::eLL_DEBUG) \ 
    194       { \ 
    195         RRLIB_LOG_PRINT_CALL_STATIC(level, args); \ 
    196       } \ 
    197     } while (0) \ 
    198  
     191  do \ 
     192  { \ 
     193    if ((level) <= rrlib::logging::eLL_DEBUG) \ 
     194    { \ 
     195      RRLIB_LOG_PRINT_CALL_STATIC(level, args); \ 
     196    } \ 
     197  } while (0) \ 
     198      
    199199/*! Macro for messages using printf syntax 
    200200 * 
     
    211211    } \ 
    212212  } while (0) \ 
    213  
     213      
    214214#define RRLIB_LOG_PRINTF(level, args...) \ 
    215215  do \ 
     
    220220    } \ 
    221221  } while (0) \ 
    222  
     222      
    223223/*! Macro for messages using printf syntax from static context 
    224224 * 
     
    235235    } \ 
    236236  } while (0) \ 
    237  
     237      
    238238#define RRLIB_LOG_PRINTF_STATIC(level, args...) \ 
    239239  do \ 
     
    244244    } \ 
    245245  } while (0) \ 
    246  
     246      
    247247#else 
    248248 
     
    256256#define RRLIB_LOG_STREAM(level, args...) \ 
    257257  RRLIB_LOG_STREAM_CALL(level, args) \ 
    258  
     258    
    259259#define RRLIB_LOG_PRINT(level, args...) \ 
    260260  RRLIB_LOG_PRINT_CALL(level, args) \ 
    261  
     261    
    262262/*! Macro to get a stream for messages using operator << from static context 
    263263 * 
     
    269269#define RRLIB_LOG_STREAM_STATIC(level, args...) \ 
    270270  RRLIB_LOG_STREAM_CALL_STATIC(level, args) \ 
    271  
     271    
    272272#define RRLIB_LOG_PRINT_STATIC(level, args...) \ 
    273273  RRLIB_LOG_PRINT_CALL_STATIC(level, args) \ 
    274  
     274    
    275275/*! Macro for messages using printf syntax 
    276276 * 
     
    281281#define RRLIB_LOG_MESSAGE(level, args...) \ 
    282282  RRLIB_LOG_PRINTF_CALL(level, args) \ 
    283  
     283    
    284284#define RRLIB_LOG_PRINTF(level, args...) \ 
    285285  RRLIB_LOG_PRINTF_CALL(level, args) \ 
    286  
     286    
    287287/*! Macro for messages using printf syntax from static context 
    288288 * 
     
    293293#define RRLIB_LOG_MESSAGE_STATIC(level, args...) \ 
    294294  RRLIB_LOG_PRINTF_CALL_STATIC(level, args) \ 
    295  
     295    
    296296#define RRLIB_LOG_PRINTF_STATIC(level, args...) \ 
    297297  RRLIB_LOG_PRINTF_CALL_STATIC(level, args) \ 
    298  
     298    
    299299#endif 
    300300 
     
    324324    return default_log_struct::GetDomain(); \ 
    325325  } \ 
    326  
     326    
    327327/*! Macro for creation of a new named domain for the current scope 
    328328 * 
     
    356356    return symbolic_name ## _struct::GetDomain(); \ 
    357357  } \ 
    358  
     358    
    359359 
    360360#endif 
  • tLogDomain.cpp

    r63 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogDomain.h

    r53 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogDomainConfiguration.cpp

    r51 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogDomainConfiguration.h

    r53 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogDomainRegistry.cpp

    r53 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogDomainRegistry.h

    r53 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogStream.h

    r61 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogStreamBuffer.cpp

    r51 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogStreamBuffer.h

    r51 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • tLogStreamContext.h

    r51 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • test/debugging.h

    r62 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
  • test/test_messages.cpp

    r62 r65  
    33// Robotics Research Library 
    44// 
    5 // Copyright (C) AG Robotersysteme TU Kaiserslautern 
     5// Copyright (C) Finroc GbR (finroc.org) 
    66// 
    77// This program is free software; you can redistribute it and/or 
Note: See TracChangeset for help on using the changeset viewer.