text stringlengths 14 100k | source stringclasses 1
value | repo stringclasses 810
values | language stringclasses 13
values |
|---|---|---|---|
<|fim_prefix|>//
// Validator.h
//
// Library: Util
// Package: Options
// Module: Val<|fim_suffix|>rmatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Util_Validator_INCLUDED
#define Util_Validator_INCLUDED
#include "Poco/RefCountedObject.h"
#include "Poco/Uti... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// XMLConfiguration.h
//
// Library: Util
// Package: Configuration
// Module: XMLConfiguration
//
// Definition of the XMLConfiguration class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef Util_XM... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>berFormatter::format(value));
}
void AbstractConfiguration::setDouble(const std::string& key, double value)
{
setRawWithEvent(key, NumberFormatter::format(value));
}
void AbstractConfiguration::setBool(const std::string& key, bool value)
{
setRawWithEvent(key, value ? "true" : "false");
}
void A... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>O_UTIL_NO_INIFILECONFIGURATION
else if (icompare(ext, "ini") == 0)
{
_pConfig->add(new IniFileConfiguration(confPath.toString()), priority, false, false);
++n;
}
#endif
#ifndef POCO_UTIL_NO_JSONCONFIGURATION
else if (icompare(ext, "json") == 0)
{
_pConfig->add(new JSONConfiguration(confPath.toS... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>ool ConfigurationView::getRaw(const std::string& key, std::string& value) const
{
std::string translatedKey = translateKey(key);
return _pConfig->getRaw(translatedKey, value) || _pConfig->getRaw(key, value);
}
void ConfigurationView::setRaw(const std::string& key, const std::string& value)
{
std::str... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>= istr.get();
}
return true;
}
else return false;
}
void FilesystemConfiguration::setRaw(const std::string& key, const std::string& value)
{
Path p(keyToPath(key));
File dir(p);
dir.createDirectories();
p.setFileName("data");
Poco::FileOutputStream ostr(p.toString());
ostr.write(value.data()... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>ing HelpFormatter::shortPrefix() const
{
#if defined(POCO_OS_FAMILY_UNIX)
return "-";
#else
return _unixStyle ? "-" : "/";
#endif
}
std::string HelpFormatter::longPrefix() const
{
#if defined(POCO_OS_FAMILY_UNIX)
return "--";
#else
return _unixStyle ? "--" : "/";
#endif
}
} } // namespace Poco::Ut... | fim | ClickHouse/ClickHouse | cpp |
//
// IniFileConfiguration.cpp
//
// Library: Util
// Package: Configuration
// Module: IniFileConfiguration
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/IniFileConfiguration.h"
#ifndef POCO_UTIL_NO_... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// IntValidator.cpp
//
// Library: Util
// Package: Options
// Module: IntValidator
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/IntValidator.h"
#include "Poco/Util/Option.h"
#include "Poco... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>ay);
}
for(int i = 0; i <= *it - 1; ++i)
{
Poco::DynamicAny nullValue;
newArray->add(nullValue);
}
parentArray = newArray;
}
currentObject->set(name, topArray);
currentObject = new JSON::Object();
newArray->add(currentObject);
}
}
else // We h... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// LayeredConfiguration.cpp
//
// Library: Util
// Package: Configuration
// Module: LayeredConfiguration
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/LayeredConfiguration.h"
#include ... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>Config->keys(loggers);
// use a map to sort loggers by their name, ensuring initialization in correct order (parents before children)
LoggerMap loggerMap;
for (AbstractConfiguration::Keys::const_iterator it = loggers.begin(); it != loggers.end(); ++it)
{
AutoPtr<AbstractConfiguration> pLoggerConfig... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>gger = app.config().getString("application.logger", "Application");
app.setLogger(Logger::get(logger));
}
void LoggingSubsystem::uninitialize()
{
}
} } // namespace Poco::Util
<|fim_prefix|>//
// LoggingSubsystem.cpp
//
// Library: Util
// Package: Application
// Module: LoggingSubsystem
//
// Copyr... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// MapConfiguration.cpp
//
// Library: Util
// Package: Configuration
// Module: MapConfiguration
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/MapConfiguration.h"
#include <set>
name... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// Option.cpp
//
// Library: Util
// Package: Options
// Module: Option
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/Option.h"
#include "Poco/Util/OptionException.h"
#include "Poco/Uti... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>
} } // namespace Poco::Util
<|fim_prefix|>//
// OptionCallback.cpp
//
// Library: Util
// Package: Options
// Module: OptionCallback
//
// Copyright (c) 2006, Applied Informatics<|fim_middle|> Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Uti... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// OptionException.cpp
//
// Library: Util
// Package: Options
// Module: OptionException
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/OptionException.h"
#include <typeinfo>
namespac... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>;
const Option& option = _options.getOption(optionStr, isShort);
const std::string& group = option.group();
if (!group.empty())
{
if (_groups.find(group) != _groups.end())
throw IncompatibleOptionsException(option.fullName());
else
_groups.insert(group);
}
if (_specifiedOptions.find(option... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>ound)
found = true;
else
return false;
}
}
return found;
}
const Option& OptionSet::getOption(const std::string& name, bool matchShort) const
{
const Option* pOption = 0;
for (Iterator it = _options.begin(); it != _options.end(); ++it)
{
if ((matchShort && it->matchesShort(name)) ||... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|> case '\r':
if (istr.peek() == '\n')
istr.get();
continue;
case '\n':
continue;
default:
return c;
}
}
else if (c == '\n' || c == '\r')
return 0;
else
return c;
}
}
} } // namespace Poco::Util
<|fim_prefix|>//
// PropertyFileConfiguration.cpp
//
// Library: Ut... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// RegExpValidator.cpp
//
// Library: Util
// Package: Options
// Module: RegExpValidator
//
// Copy<|fim_suffix|>dator::validate(const Option& option, const std::string& value)
{
if (!RegularExpression::match(value, _regexp, RegularExpression::RE_ANCHORED | RegularExpression::RE_UTF8))
throw Inval... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>CreateFileException("Cannot write PID to file", value);
Poco::TemporaryFile::registerForDeletion(value);
}
#endif
} } // namespace Poco::Util
<|fim_prefix|>//
// ServerApplication.cpp
//
// Library: Util
// Package: Application
// Module: ServerApplication
//
// Copyright (c) 2004-2006, Applied Info... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// Subsystem.cpp
//
// Library: Util
// Package: Application
// Module: Subsystem
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and <|fim_suffix|>
Subsystem::~Subsystem()
{
}
void Subsystem::reinitialize(Application& app)
{
uninitialize();
initialize(app);
}
vo... | fim | ClickHouse/ClickHouse | cpp |
//
// SystemConfiguration.cpp
//
// Library: Util
// Package: Configuration
// Module: SystemConfiguration
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/SystemConfiguration.h"
#include "Poco/Environment... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>lock;
clock += static_cast<Poco::Clock::ClockDiff>(delay)*1000;
scheduleAtFixedRate(pTask, clock, interval);
}
void Timer::scheduleAtFixedRate(TimerTask::Ptr pTask, Poco::Timestamp time, long interval)
{
validateTask(pTask);
Poco::Timestamp tsNow;
Poco::Clock clock;
Poco::Timestamp::TimeDiff diff ... | fim | ClickHouse/ClickHouse | cpp |
<|fim_suffix|>k()
{
}
void TimerTask::cancel()
{
_isCancelled = true;
}
} } // namespace Poco::Util
<|fim_prefix|>//
// TimerTask.cpp
//
// Library: Util
// Package: Timer
// Module: TimerTask
//
// Copyright (c) 2009, Applied Informatics S<|fim_middle|>oftware Engineering GmbH.
// and Contributors.
//
// SPDX-Li... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// Validator.cpp
//
// Library: Util
// Package: Options
// Module: Validator
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// S<|fim_suffix|>alidator()
{
}
Validator::~Validator()
{
}
} } // namespace Poco::Util
<|fim_middle|>PDX-License-Identifi... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// XMLConfiguration.cpp
//
// Library: Util
// Package: Configuration
// Module: XMLConfiguration
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#include "Poco/Util/XMLConfiguration.h"
#ifndef POCO_UTIL_N... | fim | ClickHouse/ClickHouse | cpp |
<|fim_prefix|>//
// AbstractContainerNode.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the AbstractContainerNode class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_AbstractContainer... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>friend class Element;
friend class Attr;
friend class CharacterData;
friend class DOMBuilder;
friend class NodeAppender;
};
}
} // namespace Poco::XML
#endif // DOM_AbstractNode_INCLUDED
<|fim_prefix|>//
// AbstractNode.h
//
// Library: XML
// Package: DOM
// Module... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>lement node this attribute is attached to or null
/// if this attribute is not in use.
// Node
Node * parentNode() const;
const XMLString & nodeName() const;
const XMLString & getNodeValue() const;
void setNodeValue(const XMLString & value);
unsigne... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ace Poco::XML
#endif // DOM_AttrMap_INCLUDED
<|fim_prefix|>//
// AttrMap.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the AttrMap class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
/... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>MAutoPtr_INCLUDED
#define DOM_DOMAutoPtr_INCLUDED
#include "Poco/AutoPtr.h"
#include "Poco/XML/XML.h"
namespace Poco
{
namespace XML
{
using Poco::AutoPtr;
}
} // namespace Poco::XML
#endif // DOM_DOMAutoPtr_INCLUDED
<|fim_prefix|>//
<|fim_middle|>// AutoPtr.h
//
// Library: XML
// Package: ... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// CDATASection.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM CDATASection class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_CDATASection_INCLUDED
#define D... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// CharacterData.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM CharacterData class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_CharacterData_INCLUDED
#defin... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> protected:
ChildNodesList(const Node * pParent);
~ChildNodesList();
private:
ChildNodesList();
const Node * _pParent;
friend class AbstractNode;
};
}
} // namespace Poco::XML
#endif // DOM_ChildNodesList_INCLUDED
<|fim_prefix|>//
// ChildNodesList.h... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Comment.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM Comment class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_Comment_INCLUDED
#define DOM_Comment_INCL... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ocument from memory.
protected:
// DTDHandler
void notationDecl(const XMLString & name, const XMLString * publicId, const XMLString * systemId);
void
unparsedEntityDecl(const XMLString & name, const XMLString * publicId, const XMLString & systemId, const XMLString & no... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DOMException.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM DOMException class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_DOMException_INCLUDED
#define D... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DOMImplementation.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM DOMImplementation class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_DOMImplementation_INC... | fim | ClickHouse/ClickHouse | c |
//
// DOMObject.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOMObject class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_DOMObject_INCLUDED
#define DOM_DOMObject_INCLUDED
#in... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DOMParser.h
//
// Library: XML
// Package: DOM
// Module: DOMParser
//
// Definition of the DOMParser class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_DOMParser_INCLUDED
#define DOM_DOMP... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ler);
ErrorHandler * getErrorHandler() const;
void setFeature(const XMLString & featureId, bool state);
bool getFeature(const XMLString & featureId) const;
void setProperty(const XMLString & propertyId, const XMLString & value);
void setProperty(const XMLString & p... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DOMWriter.h
//
// Library: XML
// Package: DOM
// Module: DOMWriter
//
// Definition of class DOMWriter.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_DOMWriter_INCLUDED
#define DOM_DOMWrite... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DTDMap.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DTDMap class.
//
// Copyright (c) 2004-2006, Applied Informatic<|fim_suffix|>S(Node * arg);
Node * removeNamedItemNS(const XMLString & namespaceURI, const XMLString & localName);
void autoRelease();
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Document.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM Document class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_Document_INCLUDED
#define DOM_Document_... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>event of the specified type.
///
/// The eventType parameter specifies the type of Event interface to be created.
/// If the Event interface specified is supported by the implementation this
/// method will return a new Event of the interface type requested. If the Event
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DocumentFragment.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM DocumentFragment class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_DocumentFragment_INCLUD... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DocumentType.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM DocumentType class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_DocumentType_INCLUDED
#define D... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> friend class Document;
friend class AttrMap;
};
//
// inlines
//
inline const XMLString & Element::tagName() const
{
return _name.qname();
}
}
} // namespace Poco::XML
#endif // DOM_Element_INCLUDED
<|fim_prefix|>//
// Element.h
//
// Library: XML
/... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// ElementsByTagNameList.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the ElementsByTagNameList and ElementsByTagNameListNS classes.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>/ An Entity node does not have any parent.
{
public:
const XMLString & publicId() const;
/// Returns the public identifier associated with
/// the entity, if specified. If the public identifier
/// was not specified, this is the empty string.
const XMLStrin... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>me);
EntityReference(Document * pOwnerDocument, const EntityReference & ref);
~EntityReference();
Node * copyNode(bool deep, Document * pOwnerDocument) const;
private:
XMLString _name;
friend class Document;
};
}
} // namespace Poco::XML
#endif // DOM... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>t * _pOwner;
XMLString _type;
EventTarget * _pTarget;
EventTarget * _pCurrentTarget;
PhaseType _currentPhase;
bool _bubbles;
bool _cancelable;
bool _canceled;
bool _stopped;
friend class AbstractNode;
};
//
// inlines
... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>e;
};
typedef std::list<EventListenerItem> EventListenerList;
int _inDispatch;
EventListenerList _listeners;
};
}
} // namespace Poco::XML
#endif // DOM_EventDispatcher_INCLUDED
<|fim_prefix|>//
// EventDispatcher.h
//
// Library: XML
// Package: DOM
// Module: D... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>one() const;
private:
EventException();
};
//
// inlines
//
inline unsigned short EventException::code() const
{
return UNSPECIFIED_EVENT_TYPE_ERR;
}
}
} // namespace Poco::XML
#endif // DOM_EventException_INCLUDED
<|fim_prefix|>//
// EventException.h... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// EventListener.h
//
// Library: XML
// Packa<|fim_suffix|>ner.
///
/// When a Node is copied using the cloneNode method the EventListeners attached
/// to the source Node are not attached to the copied Node. If the user wishes
/// the same EventListeners to be added to the newly creat... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// EventTarget.h
//
// Library: XML
// Package: DOM
// Module: DOMEvents
//
// Definition of the DOM EventTarget interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_EventTarget_INCLUDED
#d... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> const XMLString & newValue() const;
/// newValue indicates the new value of the Attr node in DOMAttrModified
/// events, and of the CharacterData node in DOMCharDataModified events.
const XMLString & attrName() const;
/// attrName indicates the name of the changed ... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NamedNodeMap.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM NamedNodeMap interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_NamedNodeMap_INCLUDED
#defi... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> virtual Node * lastChild() const = 0;
/// Returns the last child of this node. If there is no such
/// node, this returns null.
virtual Node * previousSibling() const = 0;
/// Returns the node immediately preceding this node. If there
/// is no such node, thi... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NodeAppender.h
//
// Library:<|fim_suffix|>Element;
class XML_API NodeAppender
/// The NodeAppender class provides a very fast way to
/// build larger DOM documents.
///
/// In the DOM, child nodes are usually appended to a parent
/// node using the appendChild() method. Fo... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NodeFilter.h
//
// Library: XML
// Package: DOM
// Module: NodeFilter
//
// Definition of the DOM NodeFilter interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_NodeFilter_INCLUDED
#def... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NodeIterator.h
//
// Library: XML
// Package: DOM
// Module: NodeIterator
//
// Definition of the DOM NodeIterator class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_NodeIterator_INCLUDED
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NodeList.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM NodeList interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_NodeList_INCLUDED
#define DOM_NodeL... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Notation.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM Notation class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_Notation_INCLUDED
#define DOM_Notation_... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>g & ProcessingInstruction::getData() const
{
return _data;
}
}
} // namespace Poco::XML
#endif // DOM_ProcessingInstruction_INCLUDED
<|fim_prefix|>//
// ProcessingInstruction.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM ProcessingInstruction class.
/... | fim | ClickHouse/ClickHouse | c |
//
// Text.h
//
// Library: XML
// Package: DOM
// Module: DOM
//
// Definition of the DOM Text class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_Text_INCLUDED
#define DOM_Text_INCLUDED
#include "Poco/DOM/... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// TreeWalker.h
//
// Library: XML
// Package: DOM
// Module: TreeWalker
//
// Definition of the DOM TreeWalker class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef DOM_TreeWalker_INCLUDED
#define ... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> /// Look up the index of an attribute by a qualified name.
virtual int getIndex(const XMLString & namespaceURI, const XMLString & localName) const = 0;
/// Look up the index of an attribute by a namspace name.
virtual int getLength() const = 0;
/// Return the number o... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// AttributesImpl.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// Implementation of the SAX2 Attributes Interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_AttributesImpl_INCLUDE... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// ContentHandler.h
//
// Library: XML
// Package: SAX
/<|fim_suffix|>ixes
/// property is true (it is false by default, and support for a true value is
/// optional).
///
/// Like characters(), attribute values may have characters that need more than
/// one cha... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DTDHandler.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// SAX DTDHandler Interface.
//
// Copyright (<|fim_suffix|> unparsedEntityDecl(const XMLString & name, const XMLString * publicId, const XMLString & systemId, const XMLString & notationName)
= 0;
/// Receive no... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// DeclHandler.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// SAX2-ext DeclHandler Interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_DeclHandler_INCLUDED
#define SAX_DeclHandl... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ement(const XMLString & uri, const XMLString & localName, const XMLString & qname, const Attributes & attributes);
void endElement(const XMLString & uri, const XMLString & localName, const XMLString & qname);
void characters(const XMLChar ch[], int start, int length);
void ignorabl... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> dereferenced as a URL.
///
/// If the system identifier is a URL, the SAX parser must resolve it fully before reporting it to
/// the application.
///
/// Note that publicId maybe null, therefore we pass a pointer rather than a reference.
virtual void rele... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>rator=(const EntityResolverImpl &);
const Poco::URIStreamOpener & _opener;
};
}
} // namespace Poco::XML
#endif // SAX_EntityResolverImpl_INCLUDED
<|fim_prefix|>//
// EntityResolverImpl.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// An implementation of EntityResolver.
//
// C... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> /// method: it should still be possible for the application to process the document through
/// to the end. If the application cannot do so, then the parser should report a fatal error
/// even if the XML recommendation does not require it to do so.
///
/// Filters may ... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// InputSource.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// SAX InputSource - A single input source for an XML entity.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_InputSource_INC... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>
};
}
} // namespace Poco::XML
#endif // SAX_LexicalHandler_INCLUDED
<|fim_prefix|>//
// LexicalHandler.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// SAX2-ext LexicalHandler Interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
/... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Locator.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// SAX Locator Interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_Locator_INCLUDED
#define SAX_Locator_<|fim_suffix|>rser... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// LocatorImpl.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// An implementation of the SAX Locator interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_LocatorImpl_INCLUDED
#defi... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NamespaceSupport.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// Namespace support for SAX2.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_NamespaceSupport_INCLUDED
#define SAX_Nam... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// SAXException.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// SAX exception classes.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_SAXException_INCLUDED
#define SAX_SAXException_INC... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>dler(ErrorHandler * pErrorHandler);
ErrorHandler * getErrorHandler() const;
void setFeature(const XMLString & featureId, bool state);
bool getFeature(const XMLString & featureId) const;
void setProperty(const XMLString & propertyId, const XMLString & value);
void se... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// WhitespaceFilter.h
//
// Library: XML
// Package: SAX
// Module: WhitespaceFilter
//
// Definition of the WhitespaceFilter class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_WhitespaceFilt... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// XMLFilter.h
//
// Library: XML
// Package: SAX
// Module: SAXFilters
//
// SAX2 XMLFilter Interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_XMLFilter_INCLUDED
#define SAX_XMLFilter_IN... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>pplied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_XMLFilterImpl_INCLUDED
#define SAX_XMLFilterImpl_INCLUDED
#include "Poco/SAX/ContentHandler.h"
#include "Poco/SAX/DTDHandler.h"
#include "Poco/SAX/EntityResolver.h"
#include "Poco/S... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// XMLReader.h
//
// Library: XML
// Package: SAX
// Module: SAX
//
// SAX2 XMLReader Interface.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef SAX_XMLReader_INCLUDED
#define SAX_XMLReader_INCLUDED
... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// Content.h
//
// Library: XML
// Package: XML
// Module: Content
//
// Definition of the Content enum.
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Based on libstudxml (http://www.codesynthesis.com/projects/libstudxml/).
// Copyright (c)<|fim_su... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|> bool equalsWeakly(const XMLString & qname, const XMLString & namespaceURI, const XMLString & localName) const;
/// Returns true if either the qnames are identical or the namespaceURIs and the localNames are identical.
const XMLString & qname() const;
/// Returns the qualifi... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NamePool.h
//
// Library: XML
// Package: XML
// Module: NamePool
//
// Definition of the NamePool class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef XML_NamePool_INCLUDED
#define XML_NamePool... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// NamespaceStrategy.h
//
// Library: XML
// Package: XML
// Module: NamespaceStrategy
//
// Definition of the NamespaceStrategy class.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef XML_NamespaceSt... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>ingHandlerData, const XML_Char * name, XML_Encoding * info);
static void handleComment(void * userData, const XML_Char * data);
static void handleStartCdataSection(void * userData);
static void handleEndCdataSection(void * userData);
static void handleStartNamespaceDecl(voi... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// QName.h
//
// Library: XML
// Package: XML
// Module: QName
//
// Definition of the QName class.
//
// Copyright (c) 2015, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// Based on libstudxml (http://www.codesynthesis.com/projects/libstudxml/).
// Copyright (c) 2009-2013 Co... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>) { return v; }
};
template <typename T>
struct ValueTraits : DefaultValueTraits<T>
{
};
template <typename T, std::size_t N>
struct ValueTraits<T[N]> : DefaultValueTraits<const T *>
{
};
template <typename T>
T DefaultValueTraits<T>::parse(std::string s, ... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// XML.h
//
// Library: XML
// Package: XML
// Module: XML
//
// Basic definitions for the Poco XML library.
// This file must be the first file included by every other XML
// header file.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-Lic... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>/ The base class for all XML-related exceptions like SAXException
/// and DOMException.
}
} // namespace Poco::XML
#endif // XML_XMLException_INCLUDED
<|fim_prefix|>//
// XMLException.h
//
// Library: XML
// Package: XML
// Module: XMLException
//
// Definition of the XMLException class.
//
// Co... | fim | ClickHouse/ClickHouse | c |
<|fim_prefix|>//
// XMLStream.h
//
// Library: XML
// Package: XML
// Module: XMLStream
//
// Definition of the XMLByteInputStream and XMLCharInputStream classes.
//
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
//
#ifndef XML_X... | fim | ClickHouse/ClickHouse | c |
<|fim_suffix|>urn element<T>(QName(n), dv);
}
inline void XMLStreamParser::content(Content c)
{
poco_assert(_parserState == state_next);
if (!_elementState.empty() && _elementState.back().depth == _depth)
_elementState.back().content = c;
else
_elementState... | fim | ClickHouse/ClickHouse | c |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.