Pol  Revision:4b29d2b
systemstate.h
Go to the documentation of this file.
1 
2 #ifndef PLIB_SYTEMSTATE_H
3 #define PLIB_SYTEMSTATE_H
4 
5 #include <boost/noncopyable.hpp>
6 #include <map>
7 #include <vector>
8 #if !defined( _WIN32 )
9 #include <sys/stat.h>
10 #include <sys/types.h>
11 #endif
12 
13 #include "../clib/maputil.h"
14 #include "../pol/polcfg.h"
15 
16 
17 namespace Pol
18 {
19 namespace Core
20 {
21 class Tile;
22 }
23 namespace Plib
24 {
25 class Package;
26 
27 typedef std::vector<Package*> Packages;
28 typedef std::map<std::string, Package*, Clib::ci_cmp_pred> PackagesByName;
29 
30 class SystemState : boost::noncopyable
31 {
32 public:
33  SystemState();
34  ~SystemState();
35  void deinitialize();
36 
37  Packages packages;
38  PackagesByName packages_byname;
39 
41  struct stat accounts_txt_stat;
42 
46 
47  size_t estimatedSize() const;
48 
49 private:
50 };
51 
53 }
54 }
55 #endif
SystemState systemstate
Definition: systemstate.cpp:12
Core::PolConfig config
Definition: systemstate.h:43
std::map< std::string, Package *, Clib::ci_cmp_pred > PackagesByName
Definition: systemstate.h:28
std::vector< Package * > Packages
Definition: systemstate.h:25
Definition: berror.cpp:12
PackagesByName packages_byname
Definition: systemstate.h:38