monotone

monotone Mtn Source Tree

Root/mtn-sanity.cc

1#include "mtn-sanity.hh"
2#include "ui.hh"
3#include "mt_version.hh"
4
5extern sanity & global_sanity;
6mtn_sanity real_sanity;
7sanity & global_sanity = real_sanity;
8
9mtn_sanity::mtn_sanity() : relaxed(false)
10{}
11
12mtn_sanity::~mtn_sanity()
13{}
14
15void
16mtn_sanity::initialize(int argc, char ** argv, char const * lc_all)
17{
18 std::string full_version_string;
19 get_full_version(full_version_string);
20 PERM_MM(full_version_string);
21
22 this->sanity::initialize(argc, argv, lc_all);
23}
24
25void
26mtn_sanity::set_relaxed(bool rel)
27{
28 relaxed = rel;
29}
30
31void
32mtn_sanity::inform_log(std::string const &msg)
33{
34 ui.inform(msg);
35}
36
37void
38mtn_sanity::inform_message(std::string const &msg)
39{
40 ui.inform(msg);
41}
42
43void
44mtn_sanity::inform_warning(std::string const &msg)
45{
46 ui.warn(msg);
47}
48
49void
50mtn_sanity::inform_error(std::string const &msg)
51{
52 ui.inform(msg);
53}
54
55
56// Local Variables:
57// mode: C++
58// fill-column: 76
59// c-file-style: "gnu"
60// indent-tabs-mode: nil
61// End:
62// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:
63

Archive Download this file

Branches

Tags

Quick Links:     www.monotone.ca    -     Downloads    -     Documentation    -     Wiki    -     Code Forge    -     Build Status