[DEV] replace 'include guard' with 'pragma once'
This commit is contained in:
parent
a43eee90fe
commit
21694e2e50
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_ATTRIBUTE_H__
|
|
||||||
#define __ETK_XML_ATTRIBUTE_H__
|
|
||||||
|
|
||||||
#include <exml/Node.h>
|
#include <exml/Node.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -63,8 +61,5 @@ namespace exml {
|
|||||||
};
|
};
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_ATTRIBUTE_LIST_H__
|
|
||||||
#define __ETK_XML_ATTRIBUTE_LIST_H__
|
|
||||||
|
|
||||||
#include <exml/Node.h>
|
#include <exml/Node.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -86,8 +84,5 @@ namespace exml {
|
|||||||
bool iGenerate(std::string& _data, int32_t _indent) const;
|
bool iGenerate(std::string& _data, int32_t _indent) const;
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_COMMENT_H__
|
|
||||||
#define __ETK_XML_COMMENT_H__
|
|
||||||
|
|
||||||
#include <exml/Node.h>
|
#include <exml/Node.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -46,8 +44,5 @@ namespace exml {
|
|||||||
return std::static_pointer_cast<const exml::Comment>(shared_from_this());
|
return std::static_pointer_cast<const exml::Comment>(shared_from_this());
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_DECLARATION_H__
|
|
||||||
#define __ETK_XML_DECLARATION_H__
|
|
||||||
|
|
||||||
#include <exml/AttributeList.h>
|
#include <exml/AttributeList.h>
|
||||||
|
|
||||||
@ -62,8 +60,5 @@ namespace exml {
|
|||||||
*/
|
*/
|
||||||
virtual ~DeclarationXML() { };
|
virtual ~DeclarationXML() { };
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_DOCUMENT_H__
|
|
||||||
#define __ETK_XML_DOCUMENT_H__
|
|
||||||
|
|
||||||
#include <exml/Element.h>
|
#include <exml/Element.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -117,6 +115,3 @@ namespace exml {
|
|||||||
|
|
||||||
//__LINE__, __class__, __func__
|
//__LINE__, __class__, __func__
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_ELEMENT_H__
|
|
||||||
#define __ETK_XML_ELEMENT_H__
|
|
||||||
|
|
||||||
#include <exml/Node.h>
|
#include <exml/Node.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -99,8 +97,5 @@ namespace exml {
|
|||||||
};
|
};
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_NODE_H__
|
|
||||||
#define __ETK_XML_NODE_H__
|
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <etk/types.h>
|
#include <etk/types.h>
|
||||||
@ -328,7 +326,4 @@ namespace exml {
|
|||||||
*/
|
*/
|
||||||
virtual void clear();
|
virtual void clear();
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_TEXT_H__
|
|
||||||
#define __ETK_XML_TEXT_H__
|
|
||||||
|
|
||||||
#include <exml/Node.h>
|
#include <exml/Node.h>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
@ -65,8 +63,5 @@ namespace exml {
|
|||||||
virtual bool iParse(const std::string& _data, int32_t& _pos, bool _caseSensitive, exml::filePos& _filePos, exml::Document& _doc);
|
virtual bool iParse(const std::string& _data, int32_t& _pos, bool _caseSensitive, exml::filePos& _filePos, exml::Document& _doc);
|
||||||
virtual bool iGenerate(std::string& _data, int32_t _indent) const;
|
virtual bool iGenerate(std::string& _data, int32_t _indent) const;
|
||||||
};
|
};
|
||||||
};
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,9 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __EXML_DEBUG_H__
|
|
||||||
#define __EXML_DEBUG_H__
|
|
||||||
|
|
||||||
#include <etk/log.h>
|
#include <etk/log.h>
|
||||||
|
|
||||||
@ -39,5 +37,4 @@ namespace exml {
|
|||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,12 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
#ifndef __ETK_XML_H__
|
|
||||||
#define __ETK_XML_H__
|
|
||||||
|
|
||||||
#include <exml/Document.h>
|
#include <exml/Document.h>
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
@ -5,10 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __EXML_TEST_ALL_H__
|
|
||||||
#define __EXML_TEST_ALL_H__
|
|
||||||
|
|
||||||
#include "exmlTestCommon.h"
|
#include "exmlTestCommon.h"
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
@ -42,4 +39,3 @@ TEST(TestAll, testError) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endif
|
|
@ -5,10 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __EXML_TEST_ATTRIBUTE_H__
|
|
||||||
#define __EXML_TEST_ATTRIBUTE_H__
|
|
||||||
|
|
||||||
#include "exmlTestCommon.h"
|
#include "exmlTestCommon.h"
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
@ -59,5 +56,3 @@ TEST(TestAttribute, testEmptyAttributeNoQuote) {
|
|||||||
"<elementtt attr=/>\n",
|
"<elementtt attr=/>\n",
|
||||||
-1);
|
-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -5,10 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __EXML_TEST_COMMENT_H__
|
|
||||||
#define __EXML_TEST_COMMENT_H__
|
|
||||||
|
|
||||||
#include "exmlTestCommon.h"
|
#include "exmlTestCommon.h"
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
@ -40,5 +37,3 @@ TEST(TestComment, testAll) {
|
|||||||
"<!-- <.:!*%^$0945- '(- &<<< >>> '& ( '( '-' <elementPouris> -->\n",
|
"<!-- <.:!*%^$0945- '(- &<<< >>> '& ( '( '-' <elementPouris> -->\n",
|
||||||
-1);
|
-1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -5,10 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __EXML_TEST_COMMON_H__
|
|
||||||
#define __EXML_TEST_COMMON_H__
|
|
||||||
|
|
||||||
#include <etk/types.h>
|
#include <etk/types.h>
|
||||||
#include <test-debug/debug.h>
|
#include <test-debug/debug.h>
|
||||||
@ -41,4 +38,3 @@ static void exmlLocalTest(const std::string& _ref, const std::string& _input, in
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
@ -5,10 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __EXML_TEST_DECLARATION_H__
|
|
||||||
#define __EXML_TEST_DECLARATION_H__
|
|
||||||
|
|
||||||
#include "exmlTestCommon.h"
|
#include "exmlTestCommon.h"
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
@ -39,4 +36,3 @@ TEST(TestDeclaration, testAll) {
|
|||||||
exmlLocalTest("<?xml attr=\"p65421lop\"?>\n", "<?xml attr \n = \n\t p65421lop?>\n", -1);
|
exmlLocalTest("<?xml attr=\"p65421lop\"?>\n", "<?xml attr \n = \n\t p65421lop?>\n", -1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
@ -5,10 +5,7 @@
|
|||||||
*
|
*
|
||||||
* @license APACHE v2.0 (see license file)
|
* @license APACHE v2.0 (see license file)
|
||||||
*/
|
*/
|
||||||
|
#pragma once
|
||||||
|
|
||||||
#ifndef __EXML_TEST_ELEMENT_H__
|
|
||||||
#define __EXML_TEST_ELEMENT_H__
|
|
||||||
|
|
||||||
#include "exmlTestCommon.h"
|
#include "exmlTestCommon.h"
|
||||||
#include <gtest/gtest.h>
|
#include <gtest/gtest.h>
|
||||||
@ -57,4 +54,3 @@ TEST(TestElement, testBase3) {
|
|||||||
exmlLocalTest("<exemple/>\n", "<exemple>\n</exemple sdfgsdfg>\n", 1);
|
exmlLocalTest("<exemple/>\n", "<exemple>\n</exemple sdfgsdfg>\n", 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user