Click here to Skip to main content
15,893,564 members
Articles / Programming Languages / Visual C++ 10.0

SIP Stack (1 of 3)

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
20 Aug 2012CPOL3 min read 30.1K   1.7K   4  
SIP Stack Implementation on the basis of RFC SIP 3261 Specification
#pragma once

#ifndef CLogConfigurationItem_h
	#define CLogConfigurationItem_h

	#pragma warning( disable : 4251 ) 

	#define _CRT_SECURE_NO_DEPRECATE

	#include <string>

	#include "FWCoreDLLImportExportDeclaration.h"

	namespace CoreFW
	{
		class CORE_DLL_DECLARATION_SPECIFIER CLogConfigurationItem
		{
		public:
			CLogConfigurationItem() ;

			CLogConfigurationItem( unsigned long ulLogID, const std::string &strLogLevelType,
				int iLogSubLevelType, const std::string &strLogDescription ) ;

			virtual ~CLogConfigurationItem() ;

			void SetLogID( unsigned long ulLogID ) ;
			unsigned long GetLogID() const ;

			void SetLogLevelType( const std::string &strLogLevelType ) ;
			const std::string& GetLogLevelType() const ;

			void SetLogSubLevelType( int iLogSubLevelType ) ;
			int GetLogSubLevelType() const ;

			void SetLogDescription( const std::string &strLogDescription ) ;
			const std::string& GetLogDescription() const ;

		private:
			unsigned long m_ulLogID ;
			std::string m_strLogLevelType ;
			int m_iLogSubLevelType ;
			std::string m_strLogDescription ;
		};

		inline void CLogConfigurationItem::SetLogID( unsigned long ulLogID )
		{
			m_ulLogID = ulLogID ;
		}

		inline unsigned long CLogConfigurationItem::GetLogID() const
		{
			return m_ulLogID ;
		}

		inline void CLogConfigurationItem::SetLogLevelType( const std::string &strLogLevelType )
		{
			m_strLogLevelType = strLogLevelType ;
		}

		inline const std::string& CLogConfigurationItem::GetLogLevelType() const
		{
			return m_strLogLevelType ;
		}

		inline void CLogConfigurationItem::SetLogSubLevelType( int iLogSubLevelType )
		{
			m_iLogSubLevelType = iLogSubLevelType ;
		}

		inline int CLogConfigurationItem::GetLogSubLevelType() const
		{
			return m_iLogSubLevelType ;
		}

		inline void CLogConfigurationItem::SetLogDescription( const std::string &strLogDescription )
		{
			m_strLogDescription = strLogDescription ;
		}

		inline const std::string& CLogConfigurationItem::GetLogDescription() const
		{
			return m_strLogDescription ;
		}
	}  //  end namespace

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Architect
India India
Hatim Haidry

VC++, Technical Architect

India

haidryhatim@gmail.com

Comments and Discussions