Remove property.hpp include from object_schema.hpp

This commit is contained in:
Thomas Goyne 2015-08-26 14:53:39 -07:00 committed by Ari Lazier
parent 720020ed06
commit d2a74958f0
3 changed files with 8 additions and 3 deletions

View File

@ -17,13 +17,17 @@
//////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////
#include "object_schema.hpp" #include "object_schema.hpp"
#include "object_store.hpp" #include "object_store.hpp"
#include "property.hpp"
#include <realm/group_shared.hpp> #include <realm/group_shared.hpp>
#include <realm/link_view.hpp> #include <realm/link_view.hpp>
using namespace realm; using namespace realm;
ObjectSchema::~ObjectSchema() = default;
ObjectSchema::ObjectSchema(Group *group, const std::string &name) : name(name) { ObjectSchema::ObjectSchema(Group *group, const std::string &name) : name(name) {
TableRef tableRef = ObjectStore::table_for_object_type(group, name); TableRef tableRef = ObjectStore::table_for_object_type(group, name);
Table *table = tableRef.get(); Table *table = tableRef.get();

View File

@ -22,14 +22,14 @@
#include <string> #include <string>
#include <vector> #include <vector>
#include "property.hpp"
namespace realm { namespace realm {
class Property;
class Group; class Group;
class ObjectSchema { class ObjectSchema {
public: public:
ObjectSchema() {} ObjectSchema() = default;
~ObjectSchema();
// create object schema from existing table // create object schema from existing table
// if no table is provided it is looked up in the group // if no table is provided it is looked up in the group

View File

@ -26,6 +26,7 @@
#include <realm/group.hpp> #include <realm/group.hpp>
#include "object_schema.hpp" #include "object_schema.hpp"
#include "property.hpp"
namespace realm { namespace realm {
class ObjectSchemaValidationException; class ObjectSchemaValidationException;