MFC Grid manual

CPreferences Class Reference

Global preferences of Common library. More...

#include <Dapfor/Common/CommonPreferences.h>

List of all members.


Public Types

enum  DateType { DayMonthYear, MonthDayYear, YearMonthDay }
 This enum specifies date presentation for different cultures and it is used by date formats. More...

Static Public Member Functions

static void SetDateType (DateType dateFormat)
 Sets a new date format.
static DateType GetDateType ()
 Gets a current date format.
static TString GetDateSeparator ()
 Gets a current date separator.
static TString GetTimeSeparator ()
 Gets a current time separator.
static TString GetMillisecondSeparator ()
 Gets a current millisecond separator.
static void SetDateSeparator (const TString &separator=_T("/"))
 Sets a new date separator.
static void SetTimeSeparator (const TString &separator=_T(":"))
 Sets a new time separator.
static void SetMillisecondSeparator (const TString &separator=_T("."))
 Sets a new millisecond separator.

Detailed Description

Global preferences of Common library.

Member Enumeration Documentation

enum DateType

This enum specifies date presentation for different cultures and it is used by date formats.

Enumerator:
DayMonthYear  The date is presented as Day - Month - Year.
MonthDayYear  The date is presented as Month - Day - Year.
YearMonthDay  The date is presented as Year - Month - Day.


Member Function Documentation

void SetDateType ( DateType  dateFormat  )  [static]

Sets a new date format.

Parameters:
[in] dateFormat New date format

CPreferences::DateType GetDateType (  )  [static]

Gets a current date format.

Returns:
Current date format

TString GetDateSeparator (  )  [static]

Gets a current date separator.

Returns:
Current date separator

TString GetTimeSeparator (  )  [static]

Gets a current time separator.

Returns:
Current time separator

TString GetMillisecondSeparator (  )  [static]

Gets a current millisecond separator.

Returns:
Current milliseconds separator

void SetDateSeparator ( const TString &  separator = _T("/")  )  [static]

Sets a new date separator.

Parameters:
[in] separator New date separator.

void SetTimeSeparator ( const TString &  separator = _T(":")  )  [static]

Sets a new time separator.

Parameters:
[in] separator New time separator

void SetMillisecondSeparator ( const TString &  separator = _T(".")  )  [static]

Sets a new millisecond separator.

Parameters:
[in] separator New milliseconds separator