1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#pragma once
namespace OfficeArt
{
union OfficeArtFOPTEOPID
{
private:
struct
{
unsigned short opid:14;
unsigned short fBid:1;
unsigned short fComplex:1;
} OfficeArtFOPTEOPIDStruct;
unsigned short OfficeArtFOPTEOPIDUnsignedShort;
public:
OfficeArtFOPTEOPID() : OfficeArtFOPTEOPIDUnsignedShort(0)
{
}
explicit OfficeArtFOPTEOPID (unsigned short _opid, bool _fBid, bool _fComplex) : OfficeArtFOPTEOPIDUnsignedShort(0)
{
this->OfficeArtFOPTEOPIDStruct.opid = _opid;
( _fBid ) ? ( this->OfficeArtFOPTEOPIDStruct.fBid = 1 ) : ( this->OfficeArtFOPTEOPIDStruct.fBid = 0 );
( _fComplex ) ? ( this->OfficeArtFOPTEOPIDStruct.fComplex = 1 ) : ( this->OfficeArtFOPTEOPIDStruct.fComplex = 0 );
}
inline unsigned short GetOpid() const
{
return this->OfficeArtFOPTEOPIDStruct.opid;
}
inline bool GetFBid() const
{
return ( ( this->OfficeArtFOPTEOPIDStruct.fBid == 1 ) ? ( true ) : ( false ) );
}
inline bool GetFComplex() const
{
return ( ( this->OfficeArtFOPTEOPIDStruct.fComplex == 1 ) ? ( true ) : ( false ) );
}
inline unsigned int GetValue() const
{
return this->OfficeArtFOPTEOPIDUnsignedShort;
}
};
}