Added MetricsServer code, still needs a WinMain.cpp for windows

This commit is contained in:
Anonymous
2014-01-17 06:29:50 -07:00
parent 58b76dd538
commit 7759ffd3c0
11 changed files with 970 additions and 0 deletions
@@ -0,0 +1,52 @@
// MetricsServer.h
// Copyright 2000-02, Sony Online Entertainment Inc., all rights reserved.
// Author: Justin Randall
#ifndef _INCLUDED_MetricsServer_H
#define _INCLUDED_MetricsServer_H
//-----------------------------------------------------------------------
class CMonitorAPI;
class Service;
class TaskConnection;
//-----------------------------------------------------------------------
class MetricsServer
{
public:
MetricsServer();
~MetricsServer();
static void install();
static void remove();
static void run ();
static CMonitorAPI * getMonitor();
static const std::string & getCommandLine();
static void setCommandLine(const std::string & );
static int getWorldCountChannel();
static const std::string & getWorldCountChannelDescription();
private:
MetricsServer & operator = (const MetricsServer & rhs);
MetricsServer(const MetricsServer & source);
private:
static int m_worldCountChannel;
static std::string m_worldCountChannelDescription;
static std::string m_commandLine;
static bool m_done;
static Service * m_metricsService;
static CMonitorAPI * m_soeMonitor;
static Service * ms_service;
static TaskConnection * ms_taskConnection;
};
//-----------------------------------------------------------------------
//-----------------------------------------------------------------------
#endif // _INCLUDED_MetricsServer_H