Update of /cvsroot/cpptool/rfta/include/rfta/test
In directory sc8-pr-cvs1:/tmp/cvs-serv10617/include/rfta/test
Added Files:
SourceManagerMock.h
Log Message:
preprocessor implementation
--- NEW FILE: SourceManagerMock.h ---
// //////////////////////////////////////////////////////////////////////////
// Header file SourceManagerMock.h for class SourceManagerMock
// (c)Copyright 2003, Andre Baresel.
// Created: 2003/12/27
// //////////////////////////////////////////////////////////////////////////
#ifndef RFTA_SOURCEMANAGERMOCK_H
#define RFTA_SOURCEMANAGERMOCK_H
#include <rfta/parser/SourceManager.h>
namespace Refactoring
{
namespace Testing
{
class SourceManagerMock: public SourceManager
{
public:
/**
* create an source object for the given name.
*/
SourcePtr open(std::string sourceName);
void setSource(std::string sourceName, SourcePtr pSource);
private:
std::map<std::string,SourcePtr> sourceMap_;
};
}
}
#endif // RFTA_SOURCEMANAGERMOCK_H
|