Xpace
Xpace::Remote::Content Class Referenceabstract

Data from a Store, possibly filtered with a RefList. More...

#include <remote.h>

Public Member Functions

void destroy ()
 
virtual size_t get (String *ret, intArray *siblingPos, size_t *bytePos, bool fullNodes=true, bool showMore=true, uint maxNodes=0)=0
 get a range of content More...
 

Static Public Member Functions

static Contentcreate (const Store *store, const RefList *refList=0)
 
static bool convertStub (intArray *siblingPos, size_t *bytePos, const String &stub)
 convert an XML stub to a sibling pos and a byte pos More...
 

Protected Member Functions

 Content ()
 
virtual ~Content ()
 

Detailed Description

Data from a Store, possibly filtered with a RefList.

Definition at line 354 of file remote.h.

Constructor & Destructor Documentation

Xpace::Remote::Content::Content ( )
inlineprotected

Definition at line 398 of file remote.h.

virtual Xpace::Remote::Content::~Content ( )
inlineprotectedvirtual

Definition at line 403 of file remote.h.

Member Function Documentation

static Content* Xpace::Remote::Content::create ( const Store store,
const RefList refList = 0 
)
static
Parameters
storecontent comes from here
refListget only content from these refs
void Xpace::Remote::Content::destroy ( )
virtual size_t Xpace::Remote::Content::get ( String ret,
intArray siblingPos,
size_t *  bytePos,
bool  fullNodes = true,
bool  showMore = true,
uint  maxNodes = 0 
)
pure virtual

get a range of content

Return values
somethinglike “<count>2<><Symbol>DWTI<><Date>20000505<><end>0,2<>\0”
Parameters
siblingPoslist of sibling numbers: start here, go no deeper than siblingPos.bufferSize
Return values
siblingPoslist of sibling numbers: fillin with next
Parameters
charPosstart here (within a node)
Return values
charPosfillin next (within a node)
Parameters
fullNodesdon't break a node due to size.bufferSize (if possible)
showMoreleave stubs for unreturned subtrees
maxNodesretrieve no more than this many nodes
Returns
the number of chars filled in
static bool Xpace::Remote::Content::convertStub ( intArray siblingPos,
size_t *  bytePos,
const String stub 
)
static

convert an XML stub to a sibling pos and a byte pos

Return values
siblingPosthe siblings
bytePosthe bytes
Parameters
theXML stub
Returns
true iff the stub was valid

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

current as of Wed Jun 10 2026 12:00:06