23 |
#include "OneFamilyLinkHandler.hh" |
#include "OneFamilyLinkHandler.hh" |
24 |
|
|
25 |
|
|
26 |
OneFamilyLinkHandler::OneFamilyLinkHandler(std::string const &man, |
OneFamilyLinkHandler::OneFamilyLinkHandler(FamilyMemberHandler const &man_handler, |
27 |
std::string const &woman, |
FamilyMemberHandler const &woman_handler) : |
28 |
OneFamilyLinkHandler::NavigationSlotHandler_t * navigation_slot_man, |
_man_handler(&man_handler), |
29 |
OneFamilyLinkHandler::NavigationSlotHandler_t * navigation_slot_woman, |
_woman_handler(&woman_handler) |
|
OneFamilyLinkHandler::PopdownLinkEditionSlotHandler_t * popdownlinkedition_slot_man, |
|
|
OneFamilyLinkHandler::PopdownLinkEditionSlotHandler_t * popdownlinkedition_slot_woman |
|
|
) : |
|
|
_man(man), |
|
|
_woman(woman), |
|
|
_navigation_slot_man(navigation_slot_man), |
|
|
_navigation_slot_woman(navigation_slot_woman), |
|
|
_popdownlinkedition_slot_man(popdownlinkedition_slot_man), |
|
|
_popdownlinkedition_slot_woman(popdownlinkedition_slot_woman) |
|
30 |
{ |
{ |
31 |
return; |
return; |
32 |
} |
} |
33 |
|
|
34 |
std::string const &OneFamilyLinkHandler::getMan(void) const |
OneFamilyLinkHandler::~OneFamilyLinkHandler(void) |
35 |
{ |
{ |
36 |
return _man; |
return; |
37 |
|
} |
38 |
|
|
39 |
|
std::string OneFamilyLinkHandler::getMan(void) const |
40 |
|
{ |
41 |
|
std::string res; |
42 |
|
if(_man_handler != 0) |
43 |
|
{ |
44 |
|
res = _man_handler->getLabel(); |
45 |
|
} |
46 |
|
return res; |
47 |
} |
} |
48 |
|
|
49 |
std::string const &OneFamilyLinkHandler::getWoman(void) const |
std::string OneFamilyLinkHandler::getWoman(void) const |
50 |
{ |
{ |
51 |
return _woman; |
std::string res; |
52 |
|
if (_woman_handler != 0) |
53 |
|
{ |
54 |
|
res = _woman_handler->getLabel(); |
55 |
|
} |
56 |
|
return res; |
57 |
} |
} |
58 |
|
|
59 |
OneFamilyLinkHandler::NavigationSlotHandler_t * OneFamilyLinkHandler::getNavigationSlotMan(void) const |
FamilyMemberHandler::NavigationSlotHandler_t * OneFamilyLinkHandler::getNavigationSlotMan(void) const |
60 |
{ |
{ |
61 |
return _navigation_slot_man; |
FamilyMemberHandler::NavigationSlotHandler_t * res = 0; |
62 |
|
if (_man_handler != 0) |
63 |
|
{ |
64 |
|
res = _man_handler->getNavigationSlot(); |
65 |
|
} |
66 |
|
return res; |
67 |
} |
} |
68 |
|
|
69 |
OneFamilyLinkHandler::NavigationSlotHandler_t * OneFamilyLinkHandler::getNavigationSlotWoman(void) const |
FamilyMemberHandler::NavigationSlotHandler_t * OneFamilyLinkHandler::getNavigationSlotWoman(void) const |
70 |
{ |
{ |
71 |
return _navigation_slot_woman; |
FamilyMemberHandler::NavigationSlotHandler_t * res = 0; |
72 |
|
if (_woman_handler != 0) |
73 |
|
{ |
74 |
|
res = _woman_handler->getNavigationSlot(); |
75 |
|
} |
76 |
|
return res; |
77 |
} |
} |
78 |
|
|
79 |
OneFamilyLinkHandler::PopdownLinkEditionSlotHandler_t * OneFamilyLinkHandler::getPopdownLinkEditionSlotMan(void) const |
FamilyMemberHandler::PopdownLinkEditionSlotHandler_t * OneFamilyLinkHandler::getPopdownLinkEditionSlotMan(void) const |
80 |
{ |
{ |
81 |
return _popdownlinkedition_slot_man; |
FamilyMemberHandler::PopdownLinkEditionSlotHandler_t * res = 0; |
82 |
|
if (_man_handler != 0) |
83 |
|
{ |
84 |
|
res = _man_handler->getPopdownLinkEditionSlot(); |
85 |
|
} |
86 |
|
return res; |
87 |
} |
} |
88 |
|
|
89 |
OneFamilyLinkHandler::PopdownLinkEditionSlotHandler_t * OneFamilyLinkHandler::getPopdownLinkEditionSlotWoman(void) const |
FamilyMemberHandler::PopdownLinkEditionSlotHandler_t * OneFamilyLinkHandler::getPopdownLinkEditionSlotWoman(void) const |
90 |
{ |
{ |
91 |
return _popdownlinkedition_slot_woman; |
FamilyMemberHandler::PopdownLinkEditionSlotHandler_t * res = 0; |
92 |
|
if (_woman_handler != 0) |
93 |
|
{ |
94 |
|
res = _woman_handler->getPopdownLinkEditionSlot(); |
95 |
|
} |
96 |
|
return res; |
97 |
} |
} |