|
#pragma once
#include "mediate.hpp"
#include "MediatedInterfaces.h"
class Cfg
: public ICfgStateSet
, public i_mediated
{
public:
typedef cons<ICfgStateGet const, ICfgStateSet>::type interfaces;
void Configure()
{
mValue = "Cfg::Value default";
ICfgAuthSet& auth = Colleague<ICfgAuthSet>();
auth.User("dex");
auth.Pass("let me in");
}
std::string const& Value() const { return mValue; }
void Value(std::string const& rcValue) { mValue = rcValue; }
private:
std::string mValue;
};
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Developing various kinds of software using C/C++ since 1984 or so. Started out writing 8086 asm for direct screen i/o and mouse handling etc.
Used several other languages eg. Java, Python, Clipper/dBase, FORTRAN 77, Natural ADABAS, Unix scripting, etc.
Previous role involved Enterprise Content Management on Win32.
Most recently worked on managing secure code example development for an online secure code training product.
securecodewarrior.com