LibreOffice Module connectivity (master) 1
Classes | Public Member Functions | Protected Attributes | Private Member Functions | List of all members
connectivity::macab::MacabRecords Class Reference

#include <MacabRecords.hxx>

Inheritance diagram for connectivity::macab::MacabRecords:
[legend]
Collaboration diagram for connectivity::macab::MacabRecords:
[legend]

Classes

class  iterator
 

Public Member Functions

 MacabRecords (const ABAddressBookRef _addressBook, MacabHeader *_header, MacabRecord **_records, sal_Int32 _numRecords)
 
 MacabRecords (const MacabRecords *_copy)
 
 MacabRecords (const ABAddressBookRef _addressBook)
 
 ~MacabRecords ()
 
void initialize ()
 
void setHeader (MacabHeader *_header)
 
MacabHeadergetHeader () const
 
void setName (const OUString &_sName)
 
OUString const & getName () const
 
MacabRecordinsertRecord (MacabRecord *_newRecord, const sal_Int32 _location)
 
void insertRecord (MacabRecord *_newRecord)
 
MacabRecordgetRecord (const sal_Int32 _location) const
 
void swap (const sal_Int32 _id1, const sal_Int32 _id2)
 
macabfieldgetField (const sal_Int32 _recordNumber, const sal_Int32 _columnNumber) const
 
macabfieldgetField (const sal_Int32 _recordNumber, std::u16string_view _columnName) const
 
sal_Int32 getFieldNumber (std::u16string_view _columnName) const
 
sal_Int32 size () const
 
MacabHeadercreateHeaderForRecordType (const CFArrayRef _records, const CFStringRef _recordType) const
 
MacabRecordcreateMacabRecord (const ABRecordRef _abrecord, const MacabHeader *_header, const CFStringRef _recordType) const
 
MacabRecordsbegin ()
 
sal_Int32 end () const
 

Protected Attributes

sal_Int32 recordsSize
 
sal_Int32 currentRecord
 
CFStringRef recordType
 
MacabHeaderheader
 
MacabRecord ** records
 
ABAddressBookRef addressBook
 
OUString m_sName
 
std::vector< lcl_CFTypelcl_CFTypes
 
std::vector< CFStringRef > requiredProperties
 

Private Member Functions

void bootstrap_CF_types ()
 
void bootstrap_requiredProperties ()
 
MacabHeadercreateHeaderForProperty (const ABRecordRef _record, const CFStringRef _propertyName, const CFStringRef _recordType, const bool _isPropertyRequired) const
 
MacabHeadercreateHeaderForProperty (const ABPropertyType _propertyType, const CFTypeRef _propertyValue, const CFStringRef _propertyName) const
 
ABPropertyType getABTypeFromCFType (const CFTypeID cf_type) const
 
void insertPropertyIntoMacabRecord (MacabRecord *_abrecord, const MacabHeader *_header, const OUString &_propertyName, const CFTypeRef _propertyValue) const
 
void insertPropertyIntoMacabRecord (const ABPropertyType _propertyType, MacabRecord *_abrecord, const MacabHeader *_header, const OUString &_propertyName, const CFTypeRef _propertyValue) const
 

Detailed Description

Definition at line 46 of file MacabRecords.hxx.

Constructor & Destructor Documentation

◆ MacabRecords() [1/3]

MacabRecords::MacabRecords ( const ABAddressBookRef  _addressBook,
MacabHeader _header,
MacabRecord **  _records,
sal_Int32  _numRecords 
)

Definition at line 75 of file MacabRecords.cxx.

References bootstrap_CF_types(), bootstrap_requiredProperties(), and header.

◆ MacabRecords() [2/3]

MacabRecords::MacabRecords ( const MacabRecords _copy)
explicit

Definition at line 93 of file MacabRecords.cxx.

References bootstrap_CF_types(), bootstrap_requiredProperties(), header, and m_sName.

◆ MacabRecords() [3/3]

MacabRecords::MacabRecords ( const ABAddressBookRef  _addressBook)
explicit

Definition at line 104 of file MacabRecords.cxx.

References bootstrap_CF_types(), bootstrap_requiredProperties(), and header.

◆ ~MacabRecords()

MacabRecords::~MacabRecords ( )

Definition at line 164 of file MacabRecords.cxx.

Member Function Documentation

◆ begin()

MacabRecords * MacabRecords::begin ( )

◆ bootstrap_CF_types()

void MacabRecords::bootstrap_CF_types ( )
private

Definition at line 290 of file MacabRecords.cxx.

References lcl_CFTypes.

Referenced by MacabRecords().

◆ bootstrap_requiredProperties()

void MacabRecords::bootstrap_requiredProperties ( )
private

Definition at line 306 of file MacabRecords.cxx.

References requiredProperties.

Referenced by MacabRecords().

◆ createHeaderForProperty() [1/2]

MacabHeader * MacabRecords::createHeaderForProperty ( const ABPropertyType  _propertyType,
const CFTypeRef  _propertyValue,
const CFStringRef  _propertyName 
) const
private

◆ createHeaderForProperty() [2/2]

MacabHeader * MacabRecords::createHeaderForProperty ( const ABRecordRef  _record,
const CFStringRef  _propertyName,
const CFStringRef  _recordType,
const bool  _isPropertyRequired 
) const
private

◆ createHeaderForRecordType()

MacabHeader * MacabRecords::createHeaderForRecordType ( const CFArrayRef  _records,
const CFStringRef  _recordType 
) const

◆ createMacabRecord()

MacabRecord * MacabRecords::createMacabRecord ( const ABRecordRef  _abrecord,
const MacabHeader _header,
const CFStringRef  _recordType 
) const

◆ end()

sal_Int32 MacabRecords::end ( ) const

Definition at line 1134 of file MacabRecords.cxx.

References currentRecord.

Referenced by connectivity::macab::MacabResultSet::someMacabRecords().

◆ getABTypeFromCFType()

ABPropertyType MacabRecords::getABTypeFromCFType ( const CFTypeID  cf_type) const
private

Definition at line 1071 of file MacabRecords.cxx.

References i, and lcl_CFTypes.

Referenced by createHeaderForProperty(), and insertPropertyIntoMacabRecord().

◆ getField() [1/2]

macabfield * MacabRecords::getField ( const sal_Int32  _recordNumber,
const sal_Int32  _columnNumber 
) const

◆ getField() [2/2]

macabfield * MacabRecords::getField ( const sal_Int32  _recordNumber,
std::u16string_view  _columnName 
) const

◆ getFieldNumber()

sal_Int32 MacabRecords::getFieldNumber ( std::u16string_view  _columnName) const

◆ getHeader()

MacabHeader * MacabRecords::getHeader ( ) const

◆ getName()

OUString const & MacabRecords::getName ( ) const

◆ getRecord()

MacabRecord * MacabRecords::getRecord ( const sal_Int32  _location) const

◆ initialize()

void MacabRecords::initialize ( )

◆ insertPropertyIntoMacabRecord() [1/2]

void MacabRecords::insertPropertyIntoMacabRecord ( const ABPropertyType  _propertyType,
MacabRecord _abrecord,
const MacabHeader _header,
const OUString &  _propertyName,
const CFTypeRef  _propertyValue 
) const
private

◆ insertPropertyIntoMacabRecord() [2/2]

void MacabRecords::insertPropertyIntoMacabRecord ( MacabRecord _abrecord,
const MacabHeader _header,
const OUString &  _propertyName,
const CFTypeRef  _propertyValue 
) const
private

◆ insertRecord() [1/2]

void MacabRecords::insertRecord ( MacabRecord _newRecord)

Definition at line 219 of file MacabRecords.cxx.

References currentRecord, and insertRecord().

◆ insertRecord() [2/2]

MacabRecord * MacabRecords::insertRecord ( MacabRecord _newRecord,
const sal_Int32  _location 
)

◆ setHeader()

void MacabRecords::setHeader ( MacabHeader _header)

Definition at line 169 of file MacabRecords.cxx.

References header.

Referenced by connectivity::macab::MacabGroup::MacabGroup().

◆ setName()

void MacabRecords::setName ( const OUString &  _sName)

◆ size()

sal_Int32 MacabRecords::size ( ) const

◆ swap()

void MacabRecords::swap ( const sal_Int32  _id1,
const sal_Int32  _id2 
)

Definition at line 1140 of file MacabRecords.cxx.

References records.

Referenced by connectivity::macab::MacabResultSet::sortMacabRecords().

Member Data Documentation

◆ addressBook

ABAddressBookRef connectivity::macab::MacabRecords::addressBook
protected

◆ currentRecord

sal_Int32 connectivity::macab::MacabRecords::currentRecord
protected

Definition at line 53 of file MacabRecords.hxx.

Referenced by end(), initialize(), insertRecord(), and size().

◆ header

MacabHeader* connectivity::macab::MacabRecords::header
protected

Definition at line 55 of file MacabRecords.hxx.

Referenced by getField(), getFieldNumber(), getHeader(), initialize(), and setHeader().

◆ lcl_CFTypes

std::vector<lcl_CFType> connectivity::macab::MacabRecords::lcl_CFTypes
protected

Definition at line 61 of file MacabRecords.hxx.

Referenced by bootstrap_CF_types(), and getABTypeFromCFType().

◆ m_sName

OUString connectivity::macab::MacabRecords::m_sName
protected

Definition at line 58 of file MacabRecords.hxx.

Referenced by getName(), connectivity::macab::MacabGroup::MacabGroup(), and setName().

◆ records

MacabRecord** connectivity::macab::MacabRecords::records
protected

◆ recordsSize

sal_Int32 connectivity::macab::MacabRecords::recordsSize
protected

◆ recordType

CFStringRef connectivity::macab::MacabRecords::recordType
protected

Definition at line 54 of file MacabRecords.hxx.

Referenced by initialize().

◆ requiredProperties

std::vector<CFStringRef> connectivity::macab::MacabRecords::requiredProperties
protected

Definition at line 64 of file MacabRecords.hxx.

Referenced by bootstrap_requiredProperties(), and createHeaderForRecordType().


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