Bdb packages | Design docs | Source docs | Guidelines | Recent releases

Search | Site Map .

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

StringArray Class Reference

The array of strings class. More...

List of all members.

Public Methods

 StringArray ()
void add (const char *theInPtr, size_t theLength)
 Append a new non-terminated string of specified length.


Public Attributes

char ** tokens
size_t num


Detailed Description

The array of strings class.

This class is meant to be used for the implementation purposes only. There is no distructor in this class since the clients are meant to take over the responsibility of its data members.

Definition at line 19 of file CdbPathName.cc.


Constructor & Destructor Documentation

StringArray::StringArray   [inline]
 

Definition at line 23 of file CdbPathName.cc.

References num, and tokens.


Member Function Documentation

void StringArray::add const char *    theInPtr,
size_t    theLength
[inline]
 

Append a new non-terminated string of specified length.

The new string is not expected to be a null terminated one. So its actual length is specified as a parameter of this method.

Parameters:
theInPtr  a pointer to the beginning of the string
theLength  an exact number of characters in the string

Definition at line 34 of file CdbPathName.cc.

References num, and tokens.

Referenced by CdbPathName::translate().


Member Data Documentation

size_t StringArray::num
 

Definition at line 67 of file CdbPathName.cc.

Referenced by add(), StringArray(), and CdbPathName::translate().

char** StringArray::tokens
 

Definition at line 66 of file CdbPathName.cc.

Referenced by add(), StringArray(), and CdbPathName::translate().


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

 


BaBar Public Site | SLAC | News | Links | Who's Who | Contact Us

Page Owner: Jacek Becla
Last Update: October 04, 2002