|
Altium C++ SDK 3.0
|
#include <sstream>#include <string>#include <vector>#include "DXP.Types.h"#include "DXP.Interfaces.h"Go to the source code of this file.
Classes | |
| struct | TFileOwnershipDetails |
| class | WStringVector |
| class | CSensitiveCompare |
| class | CInsensitiveCompare |
Macros | |
| #define | DXP_UTIL_H_INCLUDED |
Functions | |
| IClient * | GetClientInterface () |
| bool | ProcessKeyByClient (WORD keyID) |
| bool | FileOwnership_IsOwnedByOther (const std::wstring &ADataFileName, std::wstring *AComputerName, std::wstring *AUserName) |
| bool | FileOwnership_Details (const std::wstring &ADataFileName, TFileOwnershipDetails *ADetails) |
| void | FileOwnership_WarnOwnedByOther (const std::wstring &AFullFileName, const std::wstring &AComputerName, const std::wstring &AUserName, TFileOwnershipWarningLevel AFileOwnershipWarningLevel) |
| void | FileOwnership_WarnOwnedByOther_Message (const std::wstring &AFullFileName, const std::wstring &AComputerName, const std::wstring &AUserName) |
| void | FileOwnership_WarnOwnedByOther_Dialog (const std::wstring &AFullFileName, const std::wstring &AComputerName, const std::wstring &AUserName) |
| void | FileOwnership_ReportAcquisition_Message (const std::wstring &AFullFileName, const std::wstring &AComputerName, const std::wstring &AUserName) |
| bool | OwnershipFileIsDangling (const std::wstring &ALockFileName) |
| void | FileOwnership_CleanDanglingOwnershipFile (const std::wstring &ADataFileName) |
| HANDLE | FileOwnership_RegisterAcquisition (const std::wstring &ADataFileName) |
| HANDLE | FileOwnership_UnRegisterAcquisition (const std::wstring &ADataFileName, HANDLE ALockFileHandleInteger) |
| std::wstring | GetOwnershipFileName (const std::wstring &ADataFileName) |
| std::wstring | GetLocalComputerName () |
| std::wstring | GetLocalUserName () |
| std::wstring | GetCurrentProcessIdString () |
| std::wstring | GetCurrentProductName () |
| std::wstring | ExtractFilePath (const std::wstring &FileName) |
| std::wstring | ExtractFileDir (const std::wstring &FileName) |
| std::wstring | ExtractFileName (const std::wstring &FileName) |
| std::wstring | ExtractFileExt (const std::wstring &FileName) |
| std::wstring | ChangeFileExt (const std::wstring &FileName, const std::wstring &Extension) |
| std::wstring | AddSlash (const std::wstring &Str, const WCHAR ASlash=L'\\') |
| void | ShowWarning (const std::wstring &Text, const std::wstring &Caption=L"") |
| void | ShowInfo (const std::wstring &Text, const std::wstring &Caption=L"") |
| void | ShowError (const std::wstring &Text, const std::wstring &Caption=L"") |
| void | ShowMessage (const std::wstring &Text) |
| bool | ConfirmOKCancel (const std::wstring &Text) |
| bool | ConfirmNoYes (const std::wstring &Text) |
| int | ConfirmNoYesCancel (const std::wstring &Text) |
| bool | ConfirmNoYesWithCaption (const std::wstring &Caption, const std::wstring &Text) |
| bool | FileExists (const std::wstring &FileName) |
| HANDLE | FileOpen (const std::wstring &FileName, unsigned int Mode) |
| void | FileClose (HANDLE handle) |
| IOptionsReader * | ServerOptionsReader (const std::wstring &serverName) |
| IOptionsWriter * | ServerOptionsWriter (const std::wstring &serverName) |
| wstring | GetTime () |
| double | Now () |
| double | EncodeDate (WORD Year, WORD Month, WORD Day) |
| double | EncodeTime (WORD Hour, WORD Min, WORD Sec, WORD MSec) |
| bool | IsAltiumViewer () |
| IClientAPI_Interface * | ClientAPI () |
| std::wstring | SpecialFolder_MyDesigns () |
| void | RunCommand (const std::wstring &IdString, std::wstring SpecialParameter) |
| void | RunCommand (const std::wstring &IdString, std::wstring SpecialParameter, IServerDocumentView *const DocumentView) |
| void | MessageRouter_SendCommandToModule (const wstring &AProcess, wstring *AParameters, IServerDocumentView *const DocumentView) |
| std::wstring & | LTrim (std::wstring &s) |
| std::wstring & | RTrim (std::wstring &s) |
| std::wstring & | Trim (std::wstring &s) |
| std::wstring & | UpperCase (std::wstring &s) |
| std::wstring | StringReplace (const std::wstring &S, const std::wstring &OldPattern, const std::wstring &NewPattern, bool ReplaceAll=true, bool IgnoreCase=false) |
| vector< wstring > & | Split (const wstring &s, wchar_t delim, vector< wstring > &elems) |
| vector< wstring > | Split (const wstring &s, wchar_t delim) |
| std::wstring | ToWString (float val) |
| std::wstring | ToWString (double val) |
| template<typename T> | |
| std::wstring | ToWString (T val) |
| std::wstring | GetTemporaryFileName () |
| std::wstring | GetTemporaryFileName (const std::wstring &BaseFolder) |
| bool | GetString_PrefixAndIndex (const std::wstring &Str, const std::wstring &Prefix, int *Index) |
| bool | StringStartsWithButNotEqual (const std::wstring &AString, const std::wstring &SubString) |
| void | StatusBar_SetState (int Index, const std::wstring &S) |
| std::wstring | StatusBar_GetState (int Index) |
| void | StatusBar_SetStateDefault () |
| void | StatusBar_PushStatus () |
| void | StatusBar_PopStatus () |
| void | Percent_Init (const std::wstring &InitialString, int TotalCount) |
| void | Percent_Finish () |
| void | Percent_UpdateByNumber (int AmountToIncrement) |
| void | Percent_Update () |
| void | Percent_BeginUndeterminedOperation (const std::wstring &InitialString) |
| void | Percent_EndUndeterminedOperation () |
| void | Percent_BeginComplexOperation (const std::wstring &InitialString) |
| void | Percent_EndComplexOperation () |
| IServerDocument * | CreateNewDocumentFromDocumentKind (const std::wstring &DocumentKind) |
| double | round (double num) |
| double | CoordToMils (int C) |
| double | CoordToMMs (int C) |
| int | MilsToCoord (double M) |
| double | MilsToRealCoord (double M) |
| int | MMsToCoord (double M) |
| double | MMsToRealCoord (double M) |
| double | DegreesToRadians (double Angle) |
| double | RadiansToDegrees (double R) |
| #define DXP_UTIL_H_INCLUDED |
| std::wstring AddSlash | ( | const std::wstring & | Str, |
| const WCHAR | ASlash = L'\\' ) |
| std::wstring ChangeFileExt | ( | const std::wstring & | FileName, |
| const std::wstring & | Extension ) |
| IClientAPI_Interface * ClientAPI | ( | ) |
| bool ConfirmNoYes | ( | const std::wstring & | Text | ) |
| int ConfirmNoYesCancel | ( | const std::wstring & | Text | ) |
| bool ConfirmNoYesWithCaption | ( | const std::wstring & | Caption, |
| const std::wstring & | Text ) |
| bool ConfirmOKCancel | ( | const std::wstring & | Text | ) |
| double CoordToMils | ( | int | C | ) |
| double CoordToMMs | ( | int | C | ) |
| IServerDocument * CreateNewDocumentFromDocumentKind | ( | const std::wstring & | DocumentKind | ) |
| double DegreesToRadians | ( | double | Angle | ) |
| double EncodeDate | ( | WORD | Year, |
| WORD | Month, | ||
| WORD | Day ) |
| double EncodeTime | ( | WORD | Hour, |
| WORD | Min, | ||
| WORD | Sec, | ||
| WORD | MSec ) |
| std::wstring ExtractFileDir | ( | const std::wstring & | FileName | ) |
| std::wstring ExtractFileExt | ( | const std::wstring & | FileName | ) |
| std::wstring ExtractFileName | ( | const std::wstring & | FileName | ) |
| std::wstring ExtractFilePath | ( | const std::wstring & | FileName | ) |
| void FileClose | ( | HANDLE | handle | ) |
| bool FileExists | ( | const std::wstring & | FileName | ) |
| HANDLE FileOpen | ( | const std::wstring & | FileName, |
| unsigned int | Mode ) |
| void FileOwnership_CleanDanglingOwnershipFile | ( | const std::wstring & | ADataFileName | ) |
| bool FileOwnership_Details | ( | const std::wstring & | ADataFileName, |
| TFileOwnershipDetails * | ADetails ) |
| bool FileOwnership_IsOwnedByOther | ( | const std::wstring & | ADataFileName, |
| std::wstring * | AComputerName, | ||
| std::wstring * | AUserName ) |
| HANDLE FileOwnership_RegisterAcquisition | ( | const std::wstring & | ADataFileName | ) |
| void FileOwnership_ReportAcquisition_Message | ( | const std::wstring & | AFullFileName, |
| const std::wstring & | AComputerName, | ||
| const std::wstring & | AUserName ) |
| HANDLE FileOwnership_UnRegisterAcquisition | ( | const std::wstring & | ADataFileName, |
| HANDLE | ALockFileHandleInteger ) |
| void FileOwnership_WarnOwnedByOther | ( | const std::wstring & | AFullFileName, |
| const std::wstring & | AComputerName, | ||
| const std::wstring & | AUserName, | ||
| TFileOwnershipWarningLevel | AFileOwnershipWarningLevel ) |
| void FileOwnership_WarnOwnedByOther_Dialog | ( | const std::wstring & | AFullFileName, |
| const std::wstring & | AComputerName, | ||
| const std::wstring & | AUserName ) |
| void FileOwnership_WarnOwnedByOther_Message | ( | const std::wstring & | AFullFileName, |
| const std::wstring & | AComputerName, | ||
| const std::wstring & | AUserName ) |
| IClient * GetClientInterface | ( | ) |
| std::wstring GetCurrentProcessIdString | ( | ) |
| std::wstring GetCurrentProductName | ( | ) |
| std::wstring GetLocalComputerName | ( | ) |
| std::wstring GetLocalUserName | ( | ) |
| std::wstring GetOwnershipFileName | ( | const std::wstring & | ADataFileName | ) |
| bool GetString_PrefixAndIndex | ( | const std::wstring & | Str, |
| const std::wstring & | Prefix, | ||
| int * | Index ) |
| std::wstring GetTemporaryFileName | ( | ) |
| std::wstring GetTemporaryFileName | ( | const std::wstring & | BaseFolder | ) |
| wstring GetTime | ( | ) |
| bool IsAltiumViewer | ( | ) |
| std::wstring & LTrim | ( | std::wstring & | s | ) |
| void MessageRouter_SendCommandToModule | ( | const wstring & | AProcess, |
| wstring * | AParameters, | ||
| IServerDocumentView *const | DocumentView ) |
| int MilsToCoord | ( | double | M | ) |
| double MilsToRealCoord | ( | double | M | ) |
| int MMsToCoord | ( | double | M | ) |
| double MMsToRealCoord | ( | double | M | ) |
| double Now | ( | ) |
| bool OwnershipFileIsDangling | ( | const std::wstring & | ALockFileName | ) |
| void Percent_BeginComplexOperation | ( | const std::wstring & | InitialString | ) |
| void Percent_BeginUndeterminedOperation | ( | const std::wstring & | InitialString | ) |
| void Percent_EndComplexOperation | ( | ) |
| void Percent_EndUndeterminedOperation | ( | ) |
| void Percent_Finish | ( | ) |
| void Percent_Init | ( | const std::wstring & | InitialString, |
| int | TotalCount ) |
| void Percent_Update | ( | ) |
| void Percent_UpdateByNumber | ( | int | AmountToIncrement | ) |
| bool ProcessKeyByClient | ( | WORD | keyID | ) |
| double RadiansToDegrees | ( | double | R | ) |
| double round | ( | double | num | ) |
| std::wstring & RTrim | ( | std::wstring & | s | ) |
| void RunCommand | ( | const std::wstring & | IdString, |
| std::wstring | SpecialParameter ) |
| void RunCommand | ( | const std::wstring & | IdString, |
| std::wstring | SpecialParameter, | ||
| IServerDocumentView *const | DocumentView ) |
| IOptionsReader * ServerOptionsReader | ( | const std::wstring & | serverName | ) |
| IOptionsWriter * ServerOptionsWriter | ( | const std::wstring & | serverName | ) |
| void ShowError | ( | const std::wstring & | Text, |
| const std::wstring & | Caption = L"" ) |
| void ShowInfo | ( | const std::wstring & | Text, |
| const std::wstring & | Caption = L"" ) |
| void ShowMessage | ( | const std::wstring & | Text | ) |
| void ShowWarning | ( | const std::wstring & | Text, |
| const std::wstring & | Caption = L"" ) |
| std::wstring SpecialFolder_MyDesigns | ( | ) |
| vector< wstring > Split | ( | const wstring & | s, |
| wchar_t | delim ) |
| vector< wstring > & Split | ( | const wstring & | s, |
| wchar_t | delim, | ||
| vector< wstring > & | elems ) |
| std::wstring StatusBar_GetState | ( | int | Index | ) |
| void StatusBar_PopStatus | ( | ) |
| void StatusBar_PushStatus | ( | ) |
| void StatusBar_SetState | ( | int | Index, |
| const std::wstring & | S ) |
| void StatusBar_SetStateDefault | ( | ) |
| std::wstring StringReplace | ( | const std::wstring & | S, |
| const std::wstring & | OldPattern, | ||
| const std::wstring & | NewPattern, | ||
| bool | ReplaceAll = true, | ||
| bool | IgnoreCase = false ) |
| bool StringStartsWithButNotEqual | ( | const std::wstring & | AString, |
| const std::wstring & | SubString ) |
| std::wstring ToWString | ( | double | val | ) |
| std::wstring ToWString | ( | float | val | ) |
| std::wstring ToWString | ( | T | val | ) |
| std::wstring & Trim | ( | std::wstring & | s | ) |
| std::wstring & UpperCase | ( | std::wstring & | s | ) |