BazisLib Namespace Reference


Namespaces

namespace  _Core
namespace  _PlatformSpecificConstants
namespace  DDK
 Contains classes that provide Windows DDK support.
namespace  FastStringRoutines
namespace  FileFlags
namespace  Linux
 Contains classes that provide Linux kernel module support.
namespace  MemoryDebug
namespace  Network
namespace  ObjectManager
 Contains classes that implement the referencing counting within the service/client model.
namespace  Serializer
 Serializer-related API.
namespace  StandardINFClasses
namespace  Win32

Classes

class  FastLocker
class  FastUnlocker
class  _ReadLocker
class  _WriteLocker
class  _WriteFromReadLocker
class  CBuffer
class  ACMemoryFile
 Represents a memory file. Object manager-compatible. More...
class  CMultiReadBuffer
class  IBasicDisk
class  IInStream
class  IOutStream
class  IPipe
class  FilePath
 Represents a path to a file. More...
class  AIFile
 Represents a file or a file-like object. More...
class  BasicFileBase
class  IDirectoryIterator
class  AIDirectory
class  _ExponentialFilter
 Provides exponential filtration for some data stream. More...
class  SimpleLogger
 Provides data logging functionality for debug purposes. More...
class  SingleMallocVector
class  ActionStatus
 Represents an action status (error code & auxillary info). More...
class  case_insensitive_char_traits
class  case_insensitive_char_traits< char >
class  case_insensitive_char_traits< wchar_t >
class  istring
class  iwstring
class  _SplitStrT
class  TextFileSerializer
 Provides simple way for saving serialized objects to text files. More...
class  TextFileDeserializer
class  UniqueIdPool
class  TimeSpan
class  DateTime
class  DeviceInformationSet
 Represents a device information set structure (HDEVINFO). More...
class  INFClass
class  IRegistryParameters
class  CRegistryParameters
class  MemoryLeakDetector
 Provides a simple way of detecting memory leaks. More...
class  FileDisk
class  RamDisk

Typedefs

typedef _ExponentialFilter
< int, 1000 > 
ExponentialFilterI32
typedef std::wstring String
typedef _SplitStrT< std::string > SplitStrA
typedef _SplitStrT< StringSplitStr
typedef _SplitStrT< istringSplitStrI
typedef FastLocker
< InProcessMutex
MutexLocker
typedef FastLocker
< InProcessMutex
MutexUnlocker
typedef FastLocker
< AtomicOperationLock
AtomicOpLocker
typedef FastLocker
< AtomicOperationLock
AtomicOpUnlocker
typedef _ReadLocker< RWLockReadLocker
typedef _WriteLocker< RWLockWriteLocker
typedef _WriteFromReadLocker
< RWLock
WriteFromReadLocker
typedef _Core::_TextFile< char,
LINE_ENDING_SEQUENCE_A,
LINE_ENDING_SEQUENCE_LEN > 
TextANSIFileReader
typedef _Core::_TextFile
< wchar_t,
LINE_ENDING_SEQUENCE_W,
LINE_ENDING_SEQUENCE_LEN > 
TextUnicodeFileReader
typedef DDK::_AtomicInt32< int > AtomicInt32
typedef DDK::_AtomicInt32
< unsigned > 
AtomicUInt32
typedef DDK::_DirectoryIterator DirectoryIterator
typedef DDK::_File< EmptyClassFile
typedef DDK::_File< AIFileOSFile
typedef DDK::_DirectFile< FileDirectFile
typedef DDK::_DirectFile< OSFileOSDirectFile
typedef DDK::_Directory
< EmptyClass
Directory
typedef DDK::_Directory
< AIDirectory
OSDirectory
typedef DDK::FilePathIteratorBase _PlatformSpecificFilePathIteratorBase
typedef DDK::KMutex InProcessMutex
typedef DDK::KSpinLock AtomicOperationLock
typedef DDK::KEResource RWLock
typedef FastLocker
< DDK::FastMutex
FastMutexLocker
typedef FastLocker
< DDK::FastMutex
FastMutexUnlocker
typedef bool(* PDEVICE_SN_FILTER )(const tstring &serial, void *pContext)
typedef Win32::_AsyncFile< FileAsyncFile
typedef Win32::_AsyncFile< OSFileOSAsyncFile
typedef Win32::RegistryKey RegistryKey
typedef Win32::Event Event
typedef Win32::Thread< false > Thread
typedef Win32::Thread< true > AutoDeletingThread
typedef Win32::FunctionThread FunctionThread

Enumerations

enum  { STREAM_SIZE_UNKNOWN = -1LL }
enum  CommonErrorType {
  DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success),
  DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success),
  DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success),
  DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success),
  DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success),
  DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success), DECLARE_PLATFORM_SPECIFIC = (Success),
  DECLARE_PLATFORM_SPECIFIC = (Success)
}

Functions

 MAKE_AUTO_INTERFACE (IBasicDisk)
static ActionStatus _MAKE_STATUS (CommonErrorType ErrorType, const String::value_type *pszFile, unsigned Line, const String::value_type *pszFunction)
static void _ASSIGN_STATUS (ActionStatus *pStatus, CommonErrorType Error, const String::value_type *pszFile, unsigned Line, const String::value_type *pszFunction)
static void _ASSIGN_SUBSTATUS (ActionStatus *pStatus, ActionStatus &Source, CommonErrorType Error, const String::value_type *pszFile, unsigned Line, const String::value_type *pszFunction)
static std::string stl_itoa (unsigned number, unsigned radix=10)
static unsigned stl_stristr (const std::string &str, const std::string &token)
static bool CheckStringLength (const wchar_t *pwszString, unsigned MaxSize)
String ANSIStringToString (const std::string &str)
std::string StringToANSIString (const String &str)
std::string FormatIP (unsigned IP)
std::list< tstring > EnumerateDevicesByInterface (const GUID *pguidInterfaceType, PDEVICE_SN_FILTER Filter=NULL, void *pContext=NULL)
 Returns a list of device interface paths for given interface GUID.
std::list< tstring > EnumerateDevicesByHardwareID (const tstring &ID)
 Returns a list of device instance IDs with the specified hardware ID.
bool AddRootEnumeratedNode (const INFClass &Class, LPCTSTR HardwareId)
 Adds a root-enumerated node to system device list.

Typedef Documentation

typedef Win32::FunctionThread BazisLib::FunctionThread

typedef bool(* BazisLib::PDEVICE_SN_FILTER)(const tstring &serial, void *pContext)

typedef _SplitStrT<std::string> BazisLib::SplitStrA

typedef std::wstring BazisLib::String

typedef _Core::_TextFile<char, LINE_ENDING_SEQUENCE_A, LINE_ENDING_SEQUENCE_LEN> BazisLib::TextANSIFileReader

typedef _Core::_TextFile<wchar_t, LINE_ENDING_SEQUENCE_W, LINE_ENDING_SEQUENCE_LEN> BazisLib::TextUnicodeFileReader


Enumeration Type Documentation

anonymous enum

Enumerator:
STREAM_SIZE_UNKNOWN 

Enumerator:
DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.

DECLARE_PLATFORM_SPECIFIC  The operation succeeded.

The requested operation (command code) is not supported.

File or another object already exists.

The error is unknown.


Function Documentation

static void BazisLib::_ASSIGN_STATUS ( ActionStatus *  pStatus,
CommonErrorType  Error,
const String::value_type *  pszFile,
unsigned  Line,
const String::value_type *  pszFunction 
) [inline, static]

Here is the call graph for this function:

static void BazisLib::_ASSIGN_SUBSTATUS ( ActionStatus *  pStatus,
ActionStatus &  Source,
CommonErrorType  Error,
const String::value_type *  pszFile,
unsigned  Line,
const String::value_type *  pszFunction 
) [inline, static]

Here is the call graph for this function:

static ActionStatus BazisLib::_MAKE_STATUS ( CommonErrorType  ErrorType,
const String::value_type *  pszFile,
unsigned  Line,
const String::value_type *  pszFunction 
) [inline, static]

bool BazisLib::AddRootEnumeratedNode ( const INFClass &  Class,
LPCTSTR  HardwareId 
)

Adds a root-enumerated node to system device list.

This routine should be called to add a new virtual device to the system. It is useful for installing virtual bus drivers and other drivers that do not rely on PDOs created by other bus drivers.

Parameters:
Class The device class to be installed
HardwareId Hardware ID for the device. Windows will perform driver matching based on this ID.

String BazisLib::ANSIStringToString ( const std::string &  str  ) 

static bool BazisLib::CheckStringLength ( const wchar_t *  pwszString,
unsigned  MaxSize 
) [inline, static]

std::list<tstring> BazisLib::EnumerateDevicesByHardwareID ( const tstring &  ID  ) 

Returns a list of device instance IDs with the specified hardware ID.

Remarks:
Note that unlike the EnumerateDevicesByInterface() routine, this routine returns a list of device instance IDs (not interface links) that cannot be passed to CreateFile().

std::list<tstring> BazisLib::EnumerateDevicesByInterface ( const GUID pguidInterfaceType,
PDEVICE_SN_FILTER  Filter = NULL,
void *  pContext = NULL 
)

Returns a list of device interface paths for given interface GUID.

This routine returns a list of device interface paths that match a given interface GUID. Each interface path can be passed to CreateFile() routine to connect to a device.

std::string BazisLib::FormatIP ( unsigned  IP  ) 

BazisLib::MAKE_AUTO_INTERFACE ( IBasicDisk   ) 

static std::string BazisLib::stl_itoa ( unsigned  number,
unsigned  radix = 10 
) [inline, static]

static unsigned BazisLib::stl_stristr ( const std::string &  str,
const std::string &  token 
) [inline, static]

std::string BazisLib::StringToANSIString ( const String &  str  ) 

SourceForge.net Logo