Skip to content

Commit 519df79

Browse files
Splie out PolyRESTProcessBase into a separate header file.
1 parent bb1db65 commit 519df79

File tree

2 files changed

+23
-7
lines changed

2 files changed

+23
-7
lines changed

Diff for: polyRESTProcess.h

+2-7
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,11 @@
99
#ifndef POLYRESTPROCESS_H
1010
#define POLYRESTPROCESS_H
1111
#include "RESTProcess_base.h"
12+
#include "polyRESTProcessBase.h"
13+
#include "polyRESTProcessBase.cd"
1214

1315
namespace classdesc
1416
{
15-
struct PolyRESTProcessBase
16-
{
17-
virtual void RESTProcess(RESTProcess_t&, const string&) const=0;
18-
virtual void RESTProcess(RESTProcess_t&, const string&)=0;
19-
virtual ~PolyRESTProcessBase() {}
20-
};
21-
2217
template <class T, class Base=PolyRESTProcessBase>
2318
struct PolyRESTProcess: public Base
2419
{

Diff for: polyRESTProcessBase.h

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
@copyright Russell Standish 2021
3+
@author Russell Standish
4+
This file is part of Classdesc
5+
6+
Open source licensed under the MIT license. See LICENSE for details.
7+
*/
8+
9+
#ifndef POLYRESTPROCESSBASE_H
10+
#define POLYRESTPROCESSBASE_H
11+
namespace classdesc
12+
{
13+
struct RESTProcess_t;
14+
struct PolyRESTProcessBase
15+
{
16+
virtual void RESTProcess(RESTProcess_t&, const std::string&) const=0;
17+
virtual void RESTProcess(RESTProcess_t&, const std::string&)=0;
18+
virtual ~PolyRESTProcessBase() {}
19+
};
20+
}
21+
#endif

0 commit comments

Comments
 (0)