Public Member Functions | |
CSortInfo (Common::FID fid, bool reverseSort) | |
Constructor. | |
CSortInfo (const CSortInfo &sortInfo) | |
Copy constructor. | |
void | SetFid (Common::FID fid) |
Sets a new field identifier. | |
Common::FID | GetFid () const |
Gets field identifier. | |
void | SetReverseSort (bool bReverse) |
Reverses sorting. | |
bool | GetReverseSort () const |
Gets the value indicating whether sorting is reversed. | |
bool | operator== (const CSortInfo &sortInfo) const |
Equality operator. | |
virtual void | Serialize (CArchive &ar) |
Serializes data to/from the archive. | |
Static Public Member Functions | |
static int | GetSerializeVersion () |
Serialization version. |
It is intended for storing information about sorting. The grid supports up to 5 levels of sorting (up to 5 columns simultaneously may be used for sorting). The set of �SortInfo objects is stored in the header. When the grid replaces the header, it automatically sorts lines according to the new rules. Besides, when the grid adds lines, gets notifications from ISink interface and calls functions... it automatically replaces a line to the corresponding location.
It is important to note, that definition of lines locations in the grid is carried out while comparing the unformatted values returned while calling data object functions by the identifier. It excludes the mistakes arising at comparing formatted strings (for example dates). To ensure correct data comparing, the returned values should have identical types.
CSortInfo | ( | Common::FID | fid, | |
bool | reverseSort | |||
) |
Constructor.
[in] | fid | Field identifier |
[in] | reverseSort | Value indicating whether the sort is reversed |
Copy constructor.
[in] | sortInfo | Value to be copied |
void SetFid | ( | Common::FID | fid | ) | [inline] |
Sets a new field identifier.
[in] | fid | field identifier |
Common::FID GetFid | ( | ) | const [inline] |
Gets field identifier.
void SetReverseSort | ( | bool | bReverse | ) | [inline] |
Reverses sorting.
[in] | bReverse | Value indicating whether the sort is reversed |
bool GetReverseSort | ( | ) | const [inline] |
Gets the value indicating whether sorting is reversed.
bool operator== | ( | const CSortInfo & | sortInfo | ) | const [inline] |
Equality operator.
[in] | sortInfo | Value to be compared |
void Serialize | ( | CArchive & | ar | ) | [virtual] |
Serializes data to/from the archive.
[in] | ar | Archive to store or restore the object's data. |
int GetSerializeVersion | ( | ) | [static] |
Serialization version.
Copyright Dapfor 2007-2009 | Generated on Wed Jul 7 03:24:43 2010 for MFCGrid by ![]() |