Changeset 3356

Show
Ignore:
Timestamp:
02/02/10 12:05:45 (7 months ago)
Author:
trichards
Message:

Minor changes to Workbench server to adjust for recent changes to the protocol.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Studio/branches/0195_TR_OGITOR_INTEGRATION/WorkbenchServer/src/WorkbenchService.cpp

    r3161 r3356  
    22// Zen Studio Workbench Framework 
    33// 
    4 // Copyright (C) 2001 - 2009 Tony Richards 
     4// Copyright (C) 2001 - 2010 Tony Richards 
    55// 
    66//  This software is provided 'as-is', without any express or implied 
     
    4949 
    5050#include <Zen/Studio/WorkbenchProtocol/I_WorkbenchProtocolManager.hpp> 
    51 #include <Zen/Studio/WorkbenchProtocol/I_WorkbenchRequest.hpp> 
    5251 
    5352#include <Zen/Studio/WorkbenchModel/I_ProjectDomainObject.hpp> 
     
    118117WorkbenchService::handleMessage(pMessage_type _pMessage) 
    119118{ 
    120     // This should be a Workbench request coming from the client 
    121  
    122         I_WorkbenchRequest* pRequest = dynamic_cast<I_WorkbenchRequest*>(_pMessage.get()); 
    123  
    124     if (pRequest) 
    125     { 
    126         throw Zen::Utility::runtime_exception("WorkbenchService::handleMessage(): Error, not implemented."); 
    127     } 
    128     else 
    129     { 
    130         // TODO Error! 
    131     } 
     119    // TODO Derive from scriptable_generic_service  
     120    throw Utility::runtime_exception("WorkbenchService::handleMessage(): Error, not implemented."); 
    132121} 
    133122 
     
    136125WorkbenchService::handleRequest(pRequest_type _pRequest, pResponseHandler_type _pResponseHandler) 
    137126{ 
    138     if(_pRequest->getSourceEndpoint().isValid()) 
    139     { 
    140         throw Zen::Utility::runtime_exception("WorkbenchService::handleRequest(): Error, not implemented."); 
    141     } 
     127    // TODO Derive from scriptable_generic_service  
     128    throw Utility::runtime_exception("WorkbenchService::handleMessage(): Error, not implemented."); 
    142129} 
    143130