This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! \class ScopedSRWLock | |
//! Automation for scoped acquisition and release of an SRWLOCK. | |
//! \warning Lock must be initialized in advance! | |
class ScopedSRWLock: boost::noncopyable | |
{ | |
protected: | |
PSRWLOCK mLock; | |
bool mExclusive; | |
public: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! \class SafeHandle | |
//! Unique_ptr wrapper for WinAPI handles. | |
class SafeHandle: public std::unique_ptr<std::remove_pointer<HANDLE>::type,void(*)( HANDLE )> | |
{ | |
public: | |
SafeHandle( HANDLE handle ): unique_ptr( handle, &SafeHandle::close ) | |
{ | |
} | |
operator HANDLE() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
class CreditCard | |
{ | |
const Industry_ISO = 0; | |
const Industry_Airlines = 1; | |
const Industry_Airlines2 = 2; | |
const Industry_Travel = 3; | |
const Industry_Financial = 4; | |
const Industry_Financial2 = 5; |
NewerOlder