Classes | Defines | Functions

openfst-1.2.6/src/include/fst/log.h File Reference

#include <cassert>
#include <iostream>
#include <string>
#include <fst/types.h>
#include <fst/flags.h>
Include dependency graph for log.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  LogMessage

Defines

#define LOG(type)   LogMessage(#type).stream()
#define VLOG(level)   if ((level) <= FLAGS_v) LOG(INFO)
#define CHECK_EQ(x, y)   CHECK((x) == (y))
#define CHECK_LT(x, y)   CHECK((x) < (y))
#define CHECK_GT(x, y)   CHECK((x) > (y))
#define CHECK_LE(x, y)   CHECK((x) <= (y))
#define CHECK_GE(x, y)   CHECK((x) >= (y))
#define CHECK_NE(x, y)   CHECK((x) != (y))
#define ATTRIBUTE_DEPRECATED   __attribute__((deprecated))
 Ports.

Functions

 DECLARE_int32 (v)
void CHECK (bool x)
 Checks.

Detailed Description

log.h

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.

Author: riley@google.com (Michael Riley)

Google-style logging declarations and inline definitions.

Definition in file log.h.


Define Documentation

#define ATTRIBUTE_DEPRECATED   __attribute__((deprecated))

Ports.

Definition at line 64 of file log.h.

#define CHECK_EQ (   x,
  y 
)    CHECK((x) == (y))

Definition at line 56 of file log.h.

#define CHECK_GE (   x,
  y 
)    CHECK((x) >= (y))

Definition at line 60 of file log.h.

#define CHECK_GT (   x,
  y 
)    CHECK((x) > (y))

Definition at line 58 of file log.h.

#define CHECK_LE (   x,
  y 
)    CHECK((x) <= (y))

Definition at line 59 of file log.h.

#define CHECK_LT (   x,
  y 
)    CHECK((x) < (y))

Definition at line 57 of file log.h.

#define CHECK_NE (   x,
  y 
)    CHECK((x) != (y))

Definition at line 61 of file log.h.

#define LOG (   type  )     LogMessage(#type).stream()

Definition at line 50 of file log.h.

#define VLOG (   level  )     if ((level) <= FLAGS_v) LOG(INFO)

Definition at line 51 of file log.h.


Function Documentation

void CHECK ( bool  x  )  [inline]

Checks.

Definition at line 54 of file log.h.

DECLARE_int32 (  ) 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines