8 #ifndef __VRV_EXPANSION_MAP_H__
9 #define __VRV_EXPANSION_MAP_H__
44 void Expand(
const xsdAnyURI_List &expansionList, xsdAnyURI_List &existingList,
Object *prevSection);
46 std::vector<std::string> GetExpansionIDsForElement(
const std::string &xmlId);
54 bool UpdateIDs(
Object *
object);
56 void GetIDList(
Object *
object, std::vector<std::string> &idList);
58 void GeneratePredictableIDs(
Object *source,
Object *target);
61 bool AddExpandedIDToExpansionMap(
const std::string &origXmlId, std::string newXmlId);
65 std::map<std::string, std::vector<std::string>>
m_map;
Definition: expansionmap.h:19
std::map< std::string, std::vector< std::string > > m_map
The expansion map indicates which xmlId has been repeated (expanded) elsewhere.
Definition: expansionmap.h:65
void ToJson(std::string &output)
Write the currentexpansionMap to a JSON string.
void Expand(const xsdAnyURI_List &expansionList, xsdAnyURI_List &existingList, Object *prevSection)
Expand expansion recursively.
bool HasExpansionMap()
Check if m_expansionMap has been filled.
This class represents a basic object.
Definition: object.h:61