SAGA Adaptor CPI v.1.0
|
00001 // Copyright (c) 2009 STFC 00002 // 00003 // Distributed under the Boost Software License, Version 1.0. (See accompanying 00004 // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) 00005 #ifndef _ENTITY_TYPES_HPP_ 00006 #define _ENTITY_TYPES_HPP_ 00007 00008 #include <string> 00009 #include <map> 00010 00012 typedef struct 00013 { 00014 std::string adaptorName; 00015 bool multivalued; 00016 std::string type; 00017 } ENTITY_ATTR_MAP_TYPE; 00018 00019 typedef struct 00020 { 00021 std::string primaryKey; 00022 std::string secondaryKey; 00023 bool reverseLookup; 00024 bool directLookup; 00025 std::string entityLdapName; 00026 } ENTITY_RELATIONSHIP_TYPE; 00027 00028 typedef struct 00029 { 00030 std::string adaptorName; 00031 std::map<std::string, ENTITY_ATTR_MAP_TYPE> attrs; 00032 std::multimap<std::string, ENTITY_RELATIONSHIP_TYPE> relatedEntities; 00033 } ENTITY_ATTR_TYPE; 00035 00036 #endif 00037