damitha 2003/07/07 06:54:17
Modified: c/src/common Debug.cpp Debug.h MessageData.cpp MessageData.h
Log:
Revision Changes Path
1.2 +12 -4 xml-axis/c/src/common/Debug.cpp
Index: Debug.cpp
===================================================================
RCS file: /home/cvs/xml-axis/c/src/common/Debug.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Debug.cpp 1 Jul 2003 04:45:01 -0000 1.1
+++ Debug.cpp 7 Jul 2003 13:54:17 -0000 1.2
@@ -24,13 +24,17 @@
fout = NULL;
}
-int Debug::debug(const string &sLog)
+int Debug::debug(const string &sLog,string arg2, int arg3)
{
if(fout)
{
time_t ltime;
time(<ime);
- *fout << "time:" << ctime(<ime) << ":" << sLog.c_str() << endl;
+ //*fout << "time:" << ctime(<ime) << ":" << sLog.c_str() << endl;
+ *fout << "time:" << ctime(<ime) \
+ << " :file:"<< arg2 << " :line:" << arg3 << ":" << endl \
+ << sLog.c_str() << endl \
+ << "-------------------------------------------------" << endl;
sprintf((char*)chEBuf,sLog.c_str());
return SUCCESS;
}
@@ -40,13 +44,17 @@
}
}
-int Debug::debug(const string &sLog1, const string &sLog2)
+int Debug::debug(const string &sLog1, const string &sLog2,string arg3, int arg4)
{
if(fout)
{
time_t ltime;
time(<ime);
- *fout << "time:" << ctime(<ime) << ":" << sLog1.c_str() << " " <<
sLog2.c_str() << endl;
+ //*fout << "time:" << ctime(<ime) << ":" << sLog1.c_str() << " " <<
sLog2.c_str() << endl;
+ *fout << "time:" << ctime(<ime) \
+ << " :file:"<< arg3 << " :line:" << arg4 << endl \
+ << sLog1.c_str() << " " << sLog2.c_str() << endl \
+ << "-------------------------------------------------" << endl;
sprintf((char*)chEBuf,sLog1.c_str(), sLog2.c_str());
return SUCCESS;
}
1.4 +4 -4 xml-axis/c/src/common/Debug.h
Index: Debug.h
===================================================================
RCS file: /home/cvs/xml-axis/c/src/common/Debug.h,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- Debug.h 2 Jul 2003 04:40:59 -0000 1.3
+++ Debug.h 7 Jul 2003 13:54:17 -0000 1.4
@@ -8,8 +8,8 @@
#define DEBUG
#if defined(DEBUG)
- #define DEBUG1(X) debugger.debug(X);
- #define DEBUG2(X,Y) debugger.debug(X,Y);
+ #define DEBUG1(X) debugger.debug(X,__FILE__,__LINE__);
+ #define DEBUG2(X,Y) debugger.debug(X,Y,__FILE__,__LINE__);
#endif
#if !defined(DEBUG)
#define DEBUG1(X) "";
@@ -27,8 +27,8 @@
const char * FileName;
ofstream* fout;
- int debug(const string &sLog);
- int debug(const string &sLog1, const string &sLog2);
+ int debug(const string &sLog, string arg2, int arg3);
+ int debug(const string &sLog1, const string &sLog2, string arg3, int arg4);
};
1.2 +1 -11 xml-axis/c/src/common/MessageData.cpp
Index: MessageData.cpp
===================================================================
RCS file: /home/cvs/xml-axis/c/src/common/MessageData.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MessageData.cpp 25 Jun 2003 07:11:19 -0000 1.1
+++ MessageData.cpp 7 Jul 2003 13:54:17 -0000 1.2
@@ -98,7 +98,7 @@
string MessageData::GetUserName()
{
//return m_sUserName;
- return "damitha";
+ return "damitha kumarage";
}
@@ -109,15 +109,5 @@
WSDDService* MessageData::GetService()
{
return m_Service;
-
-}
-
-void MessageData::SetIsServiceAllowed(int m_IsServiceAllowed)
-{
- m_IsServiceAllowed = m_IsServiceAllowed;
-}
-int MessageData::GetIsServiceAllowed()
-{
- return m_IsServiceAllowed;
}
1.2 +1 -5 xml-axis/c/src/common/MessageData.h
Index: MessageData.h
===================================================================
RCS file: /home/cvs/xml-axis/c/src/common/MessageData.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- MessageData.h 25 Jun 2003 07:11:19 -0000 1.1
+++ MessageData.h 7 Jul 2003 13:54:17 -0000 1.2
@@ -98,16 +98,12 @@
void SetUserName(string m_sUserName);
string GetUserName();
void SetService(WSDDService* argService);
- WSDDService* GetService();
- void SetIsServiceAllowed(int m_IsServiceAllowed);
- int GetIsServiceAllowed();
+ WSDDService* GetService();
AXIS_PROTOCOL_TYPE m_Protocol;
protected:
string m_sUserName;
WSDDService* m_Service;
-private:
- int m_IsServiceAllowed;
};
#endif //
!defined(AFX_MESSAGEDATA_H__8B839E07_3D23_46C6_8743_543B4917D202__INCLUDED_)