~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/generator/catalog/cache.h

  • Committer: Brian Aker
  • Date: 2010-12-02 07:08:17 UTC
  • mto: (2017.3.1 catalogs)
  • mto: This revision was merged to the branch mainline in revision 2073.
  • Revision ID: brian@tangent.org-20101202070817-vzs5zyun6tbql094
We now display catalogs into the tables correctly.

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
19
19
 */
20
20
 
21
 
#ifndef DRIZZLED_GENERATOR_CATALOG_H
22
 
#define DRIZZLED_GENERATOR_CATALOG_H
 
21
#ifndef DRIZZLED_GENERATOR_CATALOG_CACHE_H
 
22
#define DRIZZLED_GENERATOR_CATALOG_CACHE_H
23
23
 
24
24
#include "drizzled/catalog/cache.h"
25
25
 
26
26
namespace drizzled {
27
27
namespace generator {
 
28
namespace catalog {
28
29
 
29
 
class Catalog
 
30
class Cache
30
31
{
31
32
  drizzled::catalog::Instance::vector local_vector;
32
33
  drizzled::catalog::Instance::vector::iterator iter;
33
34
 
34
35
public:
35
36
 
36
 
  Catalog()
 
37
  Cache()
37
38
  {
38
 
    catalog::Cache::singleton().CopyFrom(local_vector);
 
39
    drizzled::catalog::Cache::singleton().CopyFrom(local_vector);
39
40
    iter= local_vector.begin();
40
41
  }
41
42
 
42
 
  ~Catalog()
43
 
  {
44
 
  }
45
 
 
46
43
  operator drizzled::catalog::Instance::shared_ptr()
47
44
  {
48
45
    while (iter != local_vector.end())
56
53
  }
57
54
};
58
55
 
 
56
} /* namespace catalog */
59
57
} /* namespace generator */
60
58
} /* namespace drizzled */
61
59
 
62
 
#endif /* DRIZZLED_GENERATOR_CATALOG_H */
 
60
#endif /* DRIZZLED_GENERATOR_CATALOG_CACHE_H */