Stroika Library 3.0d18
 
Loading...
Searching...
No Matches
WebService/Sources/WSImpl.h
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _StroikaSample_WebServices_WSImpl_h_
5#define _StroikaSample_WebServices_WSImpl_h_ 1
6
7#include "Stroika/Frameworks/StroikaPreComp.h"
8
9#include "IWSAPI.h"
10
11/**
12 */
13
14namespace StroikaSample::WebServices {
15
16 /**
17 * \brief: WSImpl is the module providing the concrete C++ implementation (fully using C++ objects, exceptions etc) for the web service API.
18 *
19 * This is straight C++ application logic, with (hopefully) zero logic relating to marshalling, or HTTP etc.
20 */
21 class WSImpl : public IWSAPI {
22 public:
23 virtual Collection<String> Variables_GET () const override;
24 virtual Number Variables_GET (const String& variable) const override;
25 virtual void Variables_DELETE (const String& variable) const override;
26 virtual void Variables_SET (const String& variable, const Number& value) override;
27
28 public:
29 virtual Number plus (Number lhs, Number rhs) const override;
30 virtual Number minus (Number lhs, Number rhs) const override;
31 virtual Number times (Number lhs, Number rhs) const override;
32 virtual Number divide (Number lhs, Number rhs) const override;
33 };
34
35}
36
37/*
38 ********************************************************************************
39 ***************************** Implementation Details ***************************
40 ********************************************************************************
41 */
42#include "WSImpl.inl"
43
44#endif /*_StroikaSample_WebServices_WSImpl_h_*/
String is like std::u32string, except it is much easier to use, often much more space efficient,...
Definition String.h:201
A Collection<T> is a container to manage an un-ordered collection of items, without equality defined ...
: WSImpl is the module providing the concrete C++ implementation (fully using C++ objects,...