19#ifndef CPPREALM_BRIDGE_OBJECT_SCHEMA_HPP
20#define CPPREALM_BRIDGE_OBJECT_SCHEMA_HPP
25#include <cpprealm/internal/bridge/utils.hpp>
30namespace realm::internal::bridge {
34 enum class object_type : uint8_t { TopLevel = 0, Embedded = 0x1, TopLevelAsymmetric = 0x2 };
46 const std::vector<property>& properties,
50 operator ObjectSchema()
const;
54 void set_name(
const std::string& name);
55 std::string get_name()
const;
56 void set_primary_key(
const std::string&
primary_key);
57 void set_object_type(object_type);
58 property property_for_name(
const std::string&);
61 ObjectSchema* get_object_schema();
62 const ObjectSchema* get_object_schema()
const;
63#ifdef CPPREALM_HAVE_GENERATED_BRIDGE_TYPES
64 storage::ObjectSchema m_schema[1];
66 std::shared_ptr<ObjectSchema> m_schema;
Definition: object_schema.hpp:33
Definition: property.hpp:33
Definition: managed_primary_key.hpp:30