Skip to content
Snippets Groups Projects
Commit bd98615d authored by Ramin Yaghoubzadeh Torky's avatar Ramin Yaghoubzadeh Torky
Browse files

C++: some stricter encapsulation

parent 9f384144
No related branches found
No related tags found
No related merge requests found
...@@ -329,14 +329,18 @@ IPAACA_HEADER_EXPORT class PayloadEntryProxy//{{{ ...@@ -329,14 +329,18 @@ IPAACA_HEADER_EXPORT class PayloadEntryProxy//{{{
{ {
friend class Payload; friend class Payload;
friend class PayloadIterator; friend class PayloadIterator;
friend class PayloadDocumentEntry;
friend class PayloadEntryProxyListDecorator;
friend class PayloadEntryProxyListIterator;
friend class PayloadEntryProxyMapDecorator;
friend class PayloadEntryProxyMapIterator;
friend std::ostream& operator<<(std::ostream& os, const PayloadEntryProxy& proxy); friend std::ostream& operator<<(std::ostream& os, const PayloadEntryProxy& proxy);
protected:
public: public:
/// Select map-style iteration for this proxy (to select iterator content type). Will throw if not actually map-type. See example in the class description. /// Select map-style iteration for this proxy (to select iterator content type). Will throw if not actually map-type. See example in the class description.
IPAACA_HEADER_EXPORT PayloadEntryProxyMapDecorator as_map(); IPAACA_HEADER_EXPORT PayloadEntryProxyMapDecorator as_map();
/// Select list-style iteration for this proxy (to select iterator content type). Will throw if not actually list-type. See example in the class description. /// Select list-style iteration for this proxy (to select iterator content type). Will throw if not actually list-type. See example in the class description.
IPAACA_HEADER_EXPORT PayloadEntryProxyListDecorator as_list(); IPAACA_HEADER_EXPORT PayloadEntryProxyListDecorator as_list();
public: protected:
//IPAACA_MEMBER_VAR_EXPORT rapidjson::Document* _json_parent_node; //IPAACA_MEMBER_VAR_EXPORT rapidjson::Document* _json_parent_node;
//IPAACA_MEMBER_VAR_EXPORT rapidjson::Document* _json_node; //IPAACA_MEMBER_VAR_EXPORT rapidjson::Document* _json_node;
IPAACA_MEMBER_VAR_EXPORT Payload* _payload; IPAACA_MEMBER_VAR_EXPORT Payload* _payload;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment