Old fashion design for PC-104
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

55 lines
1.4 KiB

//----------------------------------------------------------------------------
// Laser Guard Ltd.
// Copyright © 2000-2002. All Rights Reserved.
// Version 1.0 01/01/2000
// Last modification: 08/10/2003
// PROJECT:
// SUBSYSTEM:
// FILE: LgString.h
// AUTHOR: Sergey Chizhevskiy
// OVERVIEW
// ~~~~~~~~
// Header file of LgString.h
//----------------------------------------------------------------------------
#ifndef __LG__STRING__INCLUDED__
#define __LG__STRING__INCLUDED__
#pragma once
class CLgString
{
public:
CLgString();
CLgString( const CLgString& s );
CLgString( LPCTSTR pString );
virtual ~CLgString();
public:
int Length() const;
CLgString& UpperCase();
LPCTSTR c_str() const;
public:
CLgString& operator = ( TCHAR ch );
CLgString& operator = ( LPCTSTR pString );
CLgString& operator = ( const CLgString& s );
CLgString& operator += ( LPCTSTR pString );
CLgString& operator += ( const CLgString& s );
CLgString& operator += ( const TCHAR ch );
public:
friend bool operator == ( const CLgString& s, LPCTSTR pString );
friend bool operator != ( const CLgString& s1, const CLgString& s2 );
public:
friend CLgString operator + ( const CLgString& s1, const CLgString& s2 );
public:
friend bool TryLgStringToInt( const CLgString& s, int& value );
friend CLgString IntToLgString( const int value );
private:
LPTSTR m_pString;
};
#endif