本文整理汇总了C++中CFRecord类的典型用法代码示例。如果您正苦于以下问题:C++ CFRecord类的具体用法?C++ CFRecord怎么用?C++ CFRecord使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了CFRecord类的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: load
void CFExTemplateParams::load(CFRecord& record)
{
record.loadAnyData(data);
}
示例2: readFields
void XF::readFields(CFRecord& record)
{
global_info = record.getGlobalWorkbookInfo();
unsigned short flags;
FontIndex ifnt;
record >> ifnt >> ifmt >> flags;
font_index = ifnt.getValue();
if (font_index >= 0 && font_index < global_info->m_arFonts.size())
{
Font* pFont = dynamic_cast<Font*>(global_info->m_arFonts[font_index].get());
if (pFont)
{
pFont->set(font);
}
}
fLocked = GETBIT(flags, 0);
fHidden = GETBIT(flags, 1);
fStyle = GETBIT(flags, 2);
f123Prefix = GETBIT(flags, 3);
ixfParent = GETBITS(flags, 4, 15);
if (global_info->Version < 0x0600)
{
_UINT16 flags1;
_UINT32 flags2;
_UINT32 flags3;
record >> flags1 >> flags2 >> flags3;
alc = GETBITS(flags1, 0, 2);
fWrap = GETBIT (flags1, 3);
alcV = GETBITS(flags1, 4, 6);
fJustLast = GETBIT (flags1, 7);
trot = 0;//static_cast<unsigned char>(GETBITS(flags1, 8, 15));
cIndent = 0;//static_cast<unsigned char>(GETBITS(flags1, 16, 19));
fShrinkToFit = 0;//GETBIT(flags1, 20);
iReadOrder = 0;//static_cast<unsigned char>(GETBITS(flags1, 22, 23));
char orient = static_cast<unsigned char>(GETBITS(flags1, 8, 10));
switch(orient)
{
case 0: trot = 0; break; // Text orientation: not rotated.
case 1: trot = 0xff; break; // Text orientation: vertically stacked.
case 2: trot = 90; break; // Text orientation: 90 deg counterclockwise.
case 3: trot = 270; break; // Text orientation: 90 deg clockwise.
}
if(!fStyle)
{
fAtrNum = GETBIT(flags2, 10);
fAtrFnt = GETBIT(flags2, 11);
fAtrAlc = GETBIT(flags2, 12);
fAtrBdr = GETBIT(flags2, 13);
fAtrPat = GETBIT(flags2, 14);
fAtrProt = GETBIT(flags2, 15);
}
fill.fls = static_cast<unsigned char>(GETBITS(flags2, 16, 21));
fill.icvFore = GETBITS(flags2, 0, 6);
fill.icvBack = GETBITS(flags2, 7, 13);
border.dgTop = static_cast<unsigned char>(GETBITS(flags3, 0, 2));
border.dgLeft = static_cast<unsigned char>(GETBITS(flags3, 3, 5));
border.dgRight = static_cast<unsigned char>(GETBITS(flags3, 6, 8));
border.dgBottom = static_cast<unsigned char>(GETBITS(flags2, 22, 24));
border.dgDiag = 0;
border.grbitDiag = 0;
border.icvTop = (0 != border.dgTop) ? static_cast<unsigned char>(GETBITS(flags3, 9, 15)) : 0;
border.icvLeft = (0 != border.dgLeft) ? static_cast<unsigned char>(GETBITS(flags3, 16, 22)) : 0;
border.icvRight = (0 != border.dgRight) ? static_cast<unsigned char>(GETBITS(flags3, 23, 29)) : 0;
border.icvBottom = (0 != border.dgBottom)? static_cast<unsigned char>(GETBITS(flags2, 25, 31)) : 0;
border.icvDiag = 0;
}
示例3: writeFields
void AxisParent::writeFields(CFRecord& record)
{
record << iax;
record.reserveNunBytes(16);// unused
}
示例4: readFields
void Guts::readFields(CFRecord& record)
{
record.skipNunBytes(4); // unused
record >> iLevelRwMac >> iLevelColMac;
}
示例5: load
void ExternDdeLinkNoOper::load(CFRecord& record)
{
record.skipNunBytes(4); // reserved
record >> linkName;
}
示例6: loadFields
void PtgArray::loadFields(CFRecord& record)
{
record.skipNunBytes(7); // unused
}
示例7: loadFields
void PtgMemNoMem::loadFields(CFRecord& record)
{
record.skipNunBytes(4); // unused
record >> cce;
}
示例8: loadFields
void PtgAttrSemi::loadFields(CFRecord& record)
{
record.skipNunBytes(2); // unused
}
示例9: storeFields
void PtgAttrSemi::storeFields(CFRecord& record)
{
record.reserveNunBytes(2); // unused
}