aboutsummaryrefslogtreecommitdiffstats
path: root/bruiser
diff options
context:
space:
mode:
Diffstat (limited to 'bruiser')
-rw-r--r--bruiser/bruiser.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/bruiser/bruiser.h b/bruiser/bruiser.h
index fcfcaec..32dafae 100644
--- a/bruiser/bruiser.h
+++ b/bruiser/bruiser.h
@@ -26,6 +26,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*
/**********************************************************************************************************************/
/*included modules*/
/*project headers*/
+#include "../tinyxml2/tinyxml2.h"
/*standard library headers*/
#include <string>
#include <fstream>
@@ -38,12 +39,15 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.*
/**********************************************************************************************************************/
/*using*/
+using namespace tinyxml2;
using namespace llvm;
using namespace clang;
/**********************************************************************************************************************/
namespace bruiser
{
/**********************************************************************************************************************/
+ const char* M0REP = "../test/misrareport.xml";
+/**********************************************************************************************************************/
/**
* @brief This class hanhles the logging for bruiser.
*/
@@ -76,6 +80,39 @@ class TypeInfo
const clang::ast_type_traits::DynTypedNode* DTN;
};
/**********************************************************************************************************************/
+class ReadMutatorRep
+{
+ public:
+ ReadMutatorRep() {}
+
+ ~ReadMutatorRep() {}
+
+ int LoadXMLDoc(void)
+ {
+ XMLError eResult = IntermediateXMLDoc.LoadFile(M0REP);
+
+ return eResult;
+ }
+
+ int ReadFirstElement(void)
+ {
+ RootPointer = IntermediateXMLDoc.FirstChild();
+
+ if (RootPointer == nullptr)
+ {
+ return XML_ERROR_FILE_READ_ERROR;
+ }
+ else
+ {
+ return XML_SUCCESS;
+ }
+ }
+
+private:
+ XMLDocument IntermediateXMLDoc;
+ XMLNode* RootPointer;
+};
+/**********************************************************************************************************************/
/**********************************************************************************************************************/
} // end of namespace bruiser
#endif