9#include "CGMESProfile.hpp"
10#include "BaseClass.hpp"
26 static void writeFile(
const std::string& path,
const std::vector<BaseClass*>& objList);
40 static void writeFile(
const std::string& path,
const std::vector<BaseClass*>& objList,
41 const CGMESProfile& profile,
const std::string& modelId,
42 const std::map<std::string, CGMESProfile>& classProfileMap);
56 static std::map<CGMESProfile, std::string>
writeFiles(
const std::string& pathStem,
57 const std::vector<BaseClass*>& objList,
58 const std::string& modelIdStem,
59 const std::map<std::string, CGMESProfile>& classProfileMap);
69 static void writeCim(std::ostream& rdf,
const std::vector<BaseClass*>& objList);
83 static bool writeCim(std::ostream& rdf,
const std::vector<BaseClass*>& objList,
84 const CGMESProfile& profile,
const std::string& modelId,
85 const std::map<std::string, CGMESProfile>& classProfileMap);
125 static std::map<std::string, CGMESProfile>
getClassProfileMap(
const std::vector<BaseClass*>& objList);
140 const CGMESProfile& classProfile);
143 static std::map<std::string, std::string> getUsedNamespaces(
const std::vector<BaseClass*>& objList);
144 static std::string getNamespaceKey(
const std::string& url);
145 static std::string xmlEscape(
const std::string& txt);
Definition BaseClass.hpp:22
Class for writing CIM RDF/XML files.
Definition CIMWriter.hpp:16
static void writeCim(std::ostream &rdf, const std::vector< BaseClass * > &objList)
Write the CIM data to a stream (e.g. a file stream).
Definition CIMWriter.cpp:57
static std::map< CGMESProfile, std::string > writeFiles(const std::string &pathStem, const std::vector< BaseClass * > &objList, const std::string &modelIdStem, const std::map< std::string, CGMESProfile > &classProfileMap)
Write the CIM data to RDF/XML files separated by profiles.
Definition CIMWriter.cpp:34
static CGMESProfile getAttributeProfile(const BaseClass *obj, const std::string &attr, const CGMESProfile &classProfile)
Get the profile for this attribute of the CIM object.
Definition CIMWriter.cpp:230
static std::map< std::string, CGMESProfile > getClassProfileMap(const std::vector< BaseClass * > &objList)
Get the main profiles for a list of CIM objects.
Definition CIMWriter.cpp:213
static void writeFile(const std::string &path, const std::vector< BaseClass * > &objList)
Write the CIM data to a RDF/XML file.
Definition CIMWriter.cpp:18
static bool isClassMatchingProfile(const BaseClass *obj, const CGMESProfile &profile)
Check if this profile is a possible profile for this CIM object.
Definition CIMWriter.cpp:202
static CGMESProfile getClassProfile(const BaseClass *obj)
Get the main profile of this CIM object.
Definition CIMWriter.cpp:208