Rigs of Rods 2023.09
Soft-body Physics Simulation
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
bbcpp::BBDocument Class Reference

#include <BBDocument.h>

+ Inheritance diagram for bbcpp::BBDocument:

Public Member Functions

void load (const std::string &bbcode)
 
template<class Iterator >
void load (Iterator begin, Iterator end)
 
- Public Member Functions inherited from bbcpp::BBNode
 BBNode (NodeType nodeType, const std::string &name)
 
virtual ~BBNode ()=default
 
const std::string & getNodeName () const
 
NodeType getNodeType () const
 
BBNodePtr getParent () const
 
const BBNodeListgetChildren () const
 
virtual void appendChild (BBNodePtr node)
 
template<typename NewTypePtrT >
NewTypePtrT downCast (bool bThrowOnFail=true)
 
template<typename NewTypePtrT >
NewTypePtrT downCast (bool bThrowOnFail=true) const
 

Static Public Member Functions

static BBDocumentPtr create ()
 

Private Member Functions

 BBDocument ()
 
template<typename citerator >
citerator parseText (citerator begin, citerator end)
 
template<typename citerator >
citerator parseElementName (citerator begin, citerator end, std::string &buf)
 
template<typename citerator >
citerator parseAttributeValue (citerator begin, citerator end, std::string &value)
 
template<typename citerator >
citerator parseKey (citerator begin, citerator end, std::string &keyname)
 
template<typename citerator >
citerator parseKeyValuePairs (citerator begin, citerator end, ParameterMap &pairs)
 
template<typename citerator >
citerator parseElement (citerator begin, citerator end)
 
BBTextnewText (const std::string &text=std::string())
 
BBElementnewElement (const std::string &name)
 
BBElementnewClosingElement (const std::string &name)
 
BBElementnewKeyValueElement (const std::string &name, const ParameterMap &pairs)
 

Private Attributes

BBNodeStack _stack
 

Additional Inherited Members

- Public Types inherited from bbcpp::BBNode
enum class  NodeType { DOCUMENT , ELEMENT , TEXT , ATTRIBUTE }
 
- Protected Attributes inherited from bbcpp::BBNode
std::string _name
 
NodeType _nodeType
 
BBNodeWeakPtr _parent
 
BBNodeList _children
 

Detailed Description

Definition at line 225 of file BBDocument.h.

Constructor & Destructor Documentation

◆ BBDocument()

bbcpp::BBDocument::BBDocument ( )
inlineprivate

Definition at line 230 of file BBDocument.h.

Member Function Documentation

◆ create()

static BBDocumentPtr bbcpp::BBDocument::create ( )
inlinestatic

Definition at line 560 of file BBDocument.h.

◆ load() [1/2]

void bbcpp::BBDocument::load ( const std::string &  bbcode)
inline

Definition at line 566 of file BBDocument.h.

◆ load() [2/2]

template<class Iterator >
void bbcpp::BBDocument::load ( Iterator  begin,
Iterator  end 
)
inline

Definition at line 572 of file BBDocument.h.

◆ newClosingElement()

BBElement & bbcpp::BBDocument::newClosingElement ( const std::string &  name)
private

Definition at line 80 of file BBDocument.cpp.

◆ newElement()

BBElement & bbcpp::BBDocument::newElement ( const std::string &  name)
private

Definition at line 63 of file BBDocument.cpp.

◆ newKeyValueElement()

BBElement & bbcpp::BBDocument::newKeyValueElement ( const std::string &  name,
const ParameterMap pairs 
)
private

Definition at line 96 of file BBDocument.cpp.

◆ newText()

BBText & bbcpp::BBDocument::newText ( const std::string &  text = std::string())
private

Definition at line 20 of file BBDocument.cpp.

◆ parseAttributeValue()

template<typename citerator >
citerator bbcpp::BBDocument::parseAttributeValue ( citerator  begin,
citerator  end,
std::string &  value 
)
inlineprivate

Definition at line 285 of file BBDocument.h.

◆ parseElement()

template<typename citerator >
citerator bbcpp::BBDocument::parseElement ( citerator  begin,
citerator  end 
)
inlineprivate

Definition at line 468 of file BBDocument.h.

◆ parseElementName()

template<typename citerator >
citerator bbcpp::BBDocument::parseElementName ( citerator  begin,
citerator  end,
std::string &  buf 
)
inlineprivate

Definition at line 261 of file BBDocument.h.

◆ parseKey()

template<typename citerator >
citerator bbcpp::BBDocument::parseKey ( citerator  begin,
citerator  end,
std::string &  keyname 
)
inlineprivate

Definition at line 380 of file BBDocument.h.

◆ parseKeyValuePairs()

template<typename citerator >
citerator bbcpp::BBDocument::parseKeyValuePairs ( citerator  begin,
citerator  end,
ParameterMap pairs 
)
inlineprivate

Definition at line 425 of file BBDocument.h.

◆ parseText()

template<typename citerator >
citerator bbcpp::BBDocument::parseText ( citerator  begin,
citerator  end 
)
inlineprivate

Definition at line 237 of file BBDocument.h.

Field Documentation

◆ _stack

BBNodeStack bbcpp::BBDocument::_stack
private

Definition at line 634 of file BBDocument.h.


The documentation for this class was generated from the following files: