During the last months, a lot of gradual changes to policies and guidelines had been finalised and documented. Moreover, recent clarifications regarding memory management in the render engine will lead to a clearer definition of the »Vault« Layer's role, with some ''engine code'' expected to move down. On this occasion, I reworked relevant sections in the documentation to confirm the role that now falls to central parts of the overall architecture. Notably I decided to rename those parts related to the application backbone as »Vessel« — to underpin the more active and defining role they assumed.
61 lines
1.3 KiB
C++
61 lines
1.3 KiB
C++
/*
|
||
AppConfig(Test) - accessing the always-available Voyage singleton
|
||
|
||
Copyright (C)
|
||
2008, Hermann Vosseler <Ichthyostega@web.de>
|
||
|
||
**Lumiera** is free software; you can redistribute it and/or modify it
|
||
under the terms of the GNU General Public License as published by the
|
||
Free Software Foundation; either version 2 of the License, or (at your
|
||
option) any later version. See the file COPYING for further details.
|
||
|
||
* *****************************************************************/
|
||
|
||
/** @file app-config-test.cpp
|
||
** unit test \ref Appconfig_test
|
||
*/
|
||
|
||
|
||
|
||
#include "lib/test/run.hpp"
|
||
#include "vessel/spine/config-facade.h"
|
||
#include "lib/symbol.hpp"
|
||
#include "lib/util.hpp"
|
||
|
||
#include <string>
|
||
|
||
using lib::Literal;
|
||
using util::isnil;
|
||
|
||
|
||
|
||
namespace vessel {
|
||
namespace test {
|
||
|
||
using spine::Config;
|
||
|
||
|
||
class Appconfig_test : public Test
|
||
{
|
||
virtual void
|
||
run (Arg)
|
||
{
|
||
fetchSetupValue();
|
||
}
|
||
|
||
|
||
/** @test accessing a value from setup.ini */
|
||
void fetchSetupValue ()
|
||
{
|
||
Literal key("Lumiera.version");
|
||
std::string ver = Config::get(key);
|
||
CHECK (not isnil(ver));
|
||
}
|
||
};
|
||
|
||
|
||
LAUNCHER (Appconfig_test, "function common");
|
||
|
||
|
||
}} // namespace vessel::test
|
||
|