File: mtn-sanity.cc

package info (click to toggle)
monotone 0.31-6
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 20,680 kB
  • ctags: 14,801
  • sloc: cpp: 87,711; ansic: 64,862; sh: 5,691; lisp: 954; perl: 783; makefile: 509; python: 265; sql: 98; sed: 16
file content (53 lines) | stat: -rw-r--r-- 841 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#include "mtn-sanity.hh"
#include "ui.hh"
#include "mt_version.hh"

extern sanity & global_sanity;
mtn_sanity real_sanity;
sanity & global_sanity = real_sanity;

mtn_sanity::mtn_sanity() : relaxed(false)
{}

mtn_sanity::~mtn_sanity()
{}

void
mtn_sanity::initialize(int argc, char ** argv, char const * lc_all)
{
  std::string full_version_string;
  get_full_version(full_version_string);
  PERM_MM(full_version_string);

  this->sanity::initialize(argc, argv, lc_all);
}

void
mtn_sanity::set_relaxed(bool rel)
{
  relaxed = rel;
}

void
mtn_sanity::inform_log(std::string const &msg)
{
  ui.inform(msg);
}

void
mtn_sanity::inform_message(std::string const &msg)
{
  ui.inform(msg);
}

void
mtn_sanity::inform_warning(std::string const &msg)
{
  ui.warn(msg);
}

void
mtn_sanity::inform_error(std::string const &msg)
{
  ui.inform(msg);
}