LCOV - code coverage report
Current view: top level - cc - cc_messages.cc (source / functions) Hit Total Coverage
Test: report.info Lines: 2 2 100.0 %
Date: 2012-05-15 Functions: 1 1 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : // File created from ../../../src/lib/cc/cc_messages.mes on Mon May 14 10:31:38 2012
       2                 :            : 
       3                 :            : #include <cstddef>
       4                 :            : #include <log/message_types.h>
       5                 :            : #include <log/message_initializer.h>
       6                 :            : 
       7                 :            : namespace isc {
       8                 :            : namespace cc {
       9                 :            : 
      10                 :            : extern const isc::log::MessageID CC_ASYNC_READ_FAILED = "CC_ASYNC_READ_FAILED";
      11                 :            : extern const isc::log::MessageID CC_CONN_ERROR = "CC_CONN_ERROR";
      12                 :            : extern const isc::log::MessageID CC_DISCONNECT = "CC_DISCONNECT";
      13                 :            : extern const isc::log::MessageID CC_ESTABLISH = "CC_ESTABLISH";
      14                 :            : extern const isc::log::MessageID CC_ESTABLISHED = "CC_ESTABLISHED";
      15                 :            : extern const isc::log::MessageID CC_GROUP_RECEIVE = "CC_GROUP_RECEIVE";
      16                 :            : extern const isc::log::MessageID CC_GROUP_RECEIVED = "CC_GROUP_RECEIVED";
      17                 :            : extern const isc::log::MessageID CC_GROUP_SEND = "CC_GROUP_SEND";
      18                 :            : extern const isc::log::MessageID CC_INVALID_LENGTHS = "CC_INVALID_LENGTHS";
      19                 :            : extern const isc::log::MessageID CC_LENGTH_NOT_READY = "CC_LENGTH_NOT_READY";
      20                 :            : extern const isc::log::MessageID CC_NO_MESSAGE = "CC_NO_MESSAGE";
      21                 :            : extern const isc::log::MessageID CC_NO_MSGQ = "CC_NO_MSGQ";
      22                 :            : extern const isc::log::MessageID CC_READ_ERROR = "CC_READ_ERROR";
      23                 :            : extern const isc::log::MessageID CC_READ_EXCEPTION = "CC_READ_EXCEPTION";
      24                 :            : extern const isc::log::MessageID CC_REPLY = "CC_REPLY";
      25                 :            : extern const isc::log::MessageID CC_SET_TIMEOUT = "CC_SET_TIMEOUT";
      26                 :            : extern const isc::log::MessageID CC_START_READ = "CC_START_READ";
      27                 :            : extern const isc::log::MessageID CC_SUBSCRIBE = "CC_SUBSCRIBE";
      28                 :            : extern const isc::log::MessageID CC_TIMEOUT = "CC_TIMEOUT";
      29                 :            : extern const isc::log::MessageID CC_UNSUBSCRIBE = "CC_UNSUBSCRIBE";
      30                 :            : extern const isc::log::MessageID CC_WRITE_ERROR = "CC_WRITE_ERROR";
      31                 :            : extern const isc::log::MessageID CC_ZERO_LENGTH = "CC_ZERO_LENGTH";
      32                 :            : 
      33                 :            : } // namespace cc
      34                 :            : } // namespace isc
      35                 :            : 
      36                 :            : namespace {
      37                 :            : 
      38                 :            : const char* values[] = {
      39                 :            :     "CC_ASYNC_READ_FAILED", "asynchronous read failed (error code = %1)",
      40                 :            :     "CC_CONN_ERROR", "error connecting to message queue (%1)",
      41                 :            :     "CC_DISCONNECT", "disconnecting from message queue daemon",
      42                 :            :     "CC_ESTABLISH", "trying to establish connection with message queue daemon at %1",
      43                 :            :     "CC_ESTABLISHED", "successfully connected to message queue daemon",
      44                 :            :     "CC_GROUP_RECEIVE", "trying to receive a message",
      45                 :            :     "CC_GROUP_RECEIVED", "message arrived ('%1', '%2')",
      46                 :            :     "CC_GROUP_SEND", "sending message '%1' to group '%2'",
      47                 :            :     "CC_INVALID_LENGTHS", "invalid length parameters (%1, %2)",
      48                 :            :     "CC_LENGTH_NOT_READY", "length not ready",
      49                 :            :     "CC_NO_MESSAGE", "no message ready to be received yet",
      50                 :            :     "CC_NO_MSGQ", "unable to connect to message queue (%1)",
      51                 :            :     "CC_READ_ERROR", "error reading data from command channel (%1)",
      52                 :            :     "CC_READ_EXCEPTION", "error reading data from command channel (%1)",
      53                 :            :     "CC_REPLY", "replying to message from '%1' with '%2'",
      54                 :            :     "CC_SET_TIMEOUT", "setting timeout to %1ms",
      55                 :            :     "CC_START_READ", "starting asynchronous read",
      56                 :            :     "CC_SUBSCRIBE", "subscribing to communication group %1",
      57                 :            :     "CC_TIMEOUT", "timeout reading data from command channel",
      58                 :            :     "CC_UNSUBSCRIBE", "unsubscribing from communication group %1",
      59                 :            :     "CC_WRITE_ERROR", "error writing data to command channel (%1)",
      60                 :            :     "CC_ZERO_LENGTH", "invalid message length (0)",
      61                 :            :     NULL
      62                 :            : };
      63                 :            : 
      64                 :        114 : const isc::log::MessageInitializer initializer(values);
      65                 :            : 
      66                 :        114 : } // Anonymous namespace
      67                 :            : 

Generated by: LCOV version 1.9