1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Reformat all code to coding standard

This commit is contained in:
Andrew Hutchings
2017-10-26 17:18:17 +01:00
parent 4985f3456e
commit 01446d1e22
1296 changed files with 403852 additions and 353747 deletions

View File

@ -14,58 +14,58 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
MA 02110-1301, USA. */
/*******************************************************************************
* $Id$
*
*******************************************************************************/
/*
* we_xmlgetter.h
*
* Created on: Feb 7, 2012
* Author: bpaul
*/
#ifndef WE_XMLGETTER_H_
#define WE_XMLGETTER_H_
#include <libxml/parser.h>
namespace WriteEngine
{
class WEXmlgetter
{
public:
WEXmlgetter(std::string& ConfigName);
virtual ~WEXmlgetter();
public:
//..Public methods
std::string getValue(const vector<string>& section) const;
std::string getAttribute(const std::vector<string>& sections,
const std::string& Tag) const;
void getConfig(const std::string& section,
const std::string& name, std::vector<std::string>& values ) const;
void getAttributeListForAllChildren(
const vector<string>& sections,
const string& attributeTag,
vector<string>& attributeValues);
private:
//..Private methods
const xmlNode* getNode(const xmlNode* pParent,
const std::string& section)const;
bool getNodeAttribute(const xmlNode* pNode,
const char* pTag, std::string& strVal ) const;
bool getNodeContent( const xmlNode* pNode, std::string& strVal) const;
//..Private data members
std::string fConfigName; // xml filename
xmlDocPtr fDoc; // xml document pointer
xmlNode* fpRoot; // root element
};
} /* namespace WriteEngine */
#endif /* WE_XMLGETTER_H_ */
/*******************************************************************************
* $Id$
*
*******************************************************************************/
/*
* we_xmlgetter.h
*
* Created on: Feb 7, 2012
* Author: bpaul
*/
#ifndef WE_XMLGETTER_H_
#define WE_XMLGETTER_H_
#include <libxml/parser.h>
namespace WriteEngine
{
class WEXmlgetter
{
public:
WEXmlgetter(std::string& ConfigName);
virtual ~WEXmlgetter();
public:
//..Public methods
std::string getValue(const vector<string>& section) const;
std::string getAttribute(const std::vector<string>& sections,
const std::string& Tag) const;
void getConfig(const std::string& section,
const std::string& name, std::vector<std::string>& values ) const;
void getAttributeListForAllChildren(
const vector<string>& sections,
const string& attributeTag,
vector<string>& attributeValues);
private:
//..Private methods
const xmlNode* getNode(const xmlNode* pParent,
const std::string& section)const;
bool getNodeAttribute(const xmlNode* pNode,
const char* pTag, std::string& strVal ) const;
bool getNodeContent( const xmlNode* pNode, std::string& strVal) const;
//..Private data members
std::string fConfigName; // xml filename
xmlDocPtr fDoc; // xml document pointer
xmlNode* fpRoot; // root element
};
} /* namespace WriteEngine */
#endif /* WE_XMLGETTER_H_ */