~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/data_home.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-16 15:27:28 UTC
  • mto: (2318.6.3 refactor7)
  • mto: This revision was merged to the branch mainline in revision 2340.
  • Revision ID: olafvdspek@gmail.com-20110616152728-9c3cwwza2qea6zjh
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 */
20
20
 
21
21
#include <config.h>
 
22
#include <boost/filesystem.hpp>
22
23
#include <drizzled/configmake.h>
23
 
 
24
 
#include <boost/filesystem.hpp>
25
 
 
26
24
#include <drizzled/data_home.h>
27
25
 
28
26
namespace drizzled {
29
27
 
30
28
static boost::filesystem::path data_home(LOCALSTATEDIR);
31
29
static boost::filesystem::path full_data_home(LOCALSTATEDIR);
 
30
static boost::filesystem::path data_home_catalog(LOCALSTATEDIR);
32
31
 
33
 
boost::filesystem::path& getFullDataHome()
 
32
const boost::filesystem::path& getFullDataHome()
34
33
{
35
34
  return full_data_home;
36
35
}
37
36
 
38
 
boost::filesystem::path& getDataHome()
 
37
const boost::filesystem::path& getDataHome()
39
38
{
40
39
  return data_home;
41
40
}
42
41
 
43
 
boost::filesystem::path& getDataHomeCatalog()
 
42
const boost::filesystem::path& getDataHomeCatalog()
44
43
{
45
 
  static boost::filesystem::path data_home_catalog(getDataHome());
46
44
  return data_home_catalog;
47
45
}
48
46
 
 
47
boost::filesystem::path& getMutableDataHome()
 
48
{
 
49
  return data_home;
 
50
}
 
51
 
 
52
void setFullDataHome(const boost::filesystem::path& v)
 
53
{
 
54
  full_data_home= v;
 
55
}
 
56
 
 
57
void setDataHomeCatalog(const boost::filesystem::path& v)
 
58
{
 
59
  data_home_catalog= v;
 
60
}
 
61
 
49
62
} // namespace drizzled