monotone

monotone Mtn Source Tree

Root/src/app_state.hh

1// Copyright (C) 2002 Graydon Hoare <graydon@pobox.com>
2//
3// This program is made available under the GNU GPL version 2.0 or
4// greater. See the accompanying file COPYING for details.
5//
6// This program is distributed WITHOUT ANY WARRANTY; without even the
7// implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
8// PURPOSE.
9
10#ifndef __APP_STATE_HH__
11#define __APP_STATE_HH__
12
13#include <boost/shared_ptr.hpp>
14
15#include "options.hh"
16#include "option_reset_info.hh"
17#include "lua_hooks.hh"
18
19// This class holds any state that needs to be persistent across multiple
20// commands, or be accessible to the lua hooks (which includes anything
21// needed by mtn_automate()).
22
23class app_state
24{
25public:
26 explicit app_state();
27 ~app_state();
28
29 options opts;
30 option_reset_info reset_info;
31 lua_hooks lua;
32 bool mtn_automate_allowed;
33};
34
35#endif // __APP_STATE_HH__
36
37// Local Variables:
38// mode: C++
39// fill-column: 76
40// c-file-style: "gnu"
41// indent-tabs-mode: nil
42// End:
43// vim: et:sw=2:sts=2:ts=2:cino=>2s,{s,\:s,+s,t0,g0,^-2,e-2,n-2,p2s,(0,=s:

Archive Download this file

Branches

Tags

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