COSA
An Object-Oriented Platform for Arduino Programming
|
Go to the source code of this file.
Classes | |
class | Registry |
struct | Registry::item_t |
struct | Registry::item_list_t |
class | Registry::Iterator |
class | Registry::Action |
struct | Registry::action_t |
struct | Registry::blob_t |
Macros | |
#define | REGISTRY_BEGIN(var, name) |
#define | REGISTRY_LIST_ITEM(var) &var.item, |
#define | REGISTRY_BLOB_ITEM(var) &var ## _blob.item, |
#define | REGISTRY_ACTION_ITEM(var) &var ## _action.item, |
#define | REGISTRY_END(var) |
#define | REGISTRY_ACTION(var, name) |
#define | REGISTRY_BLOB(var, name, mem, readonly) |
#define | REGISTRY_BLOB_VAR(type, var, name, value, readonly) |
#define | REGISTRY_BLOB_STRUCT(type, var, name, readonly) |
#define | REGISTRY_BLOB_PSTR(var, name, value) |
Functions | |
IOStream & | operator<< (IOStream &outs, Registry::item_P item) |
IOStream & | operator<< (IOStream &outs, Registry::item_list_P list) |
Copyright (C) 2013-2015, Mikael Patel
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
This file is part of the Arduino Che Cosa project.
Definition in file Registry.hh.
#define REGISTRY_ACTION | ( | var, | |
name | |||
) |
Support macro to define a registry action in program memory.
[in] | var | registry action item to create. |
[in] | name | string of registry item. |
Definition at line 443 of file Registry.hh.
#define REGISTRY_ACTION_ITEM | ( | var | ) | &var ## _action.item, |
Definition at line 420 of file Registry.hh.
#define REGISTRY_BEGIN | ( | var, | |
name | |||
) |
Support macro to start the definition of a registery item list in program memory. Used in the form: REGISTRY_BEGIN(var,name) REGISTRY_XXX_ITEM(item-1) ... REGISTRY_XXX_ITEM(item-n) REGISTRY_END(var,n)
[in] | var | registry item list to create. |
[in] | name | string for registry item. |
Definition at line 408 of file Registry.hh.
#define REGISTRY_BLOB | ( | var, | |
name, | |||
mem, | |||
readonly | |||
) |
Support macro to define a registry binary object item in program memory.
[in] | var | registry blob to create. |
[in] | name | string of registry item. |
[in] | mem | storage type (SRAM, PROGMEM or EEMEM). |
[in] | readonly | access. |
Definition at line 462 of file Registry.hh.
#define REGISTRY_BLOB_ITEM | ( | var | ) | &var ## _blob.item, |
Definition at line 419 of file Registry.hh.
#define REGISTRY_BLOB_PSTR | ( | var, | |
name, | |||
value | |||
) |
Support macro to define a registry binary object item in program memory and string variable in program memory as reference. Values is always READONLY.
[in] | var | registry blob to create. |
[in] | name | string of registry item. |
[in] | value | string for variable. |
Definition at line 507 of file Registry.hh.
#define REGISTRY_BLOB_STRUCT | ( | type, | |
var, | |||
name, | |||
readonly | |||
) |
Support macro to define a registry binary object item in program memory and struct variable in SRAM as reference.
[in] | type | variable data type. |
[in] | var | registry blob to create. |
[in] | name | string of registry item. |
[in] | readonly | access. |
Definition at line 495 of file Registry.hh.
#define REGISTRY_BLOB_VAR | ( | type, | |
var, | |||
name, | |||
value, | |||
readonly | |||
) |
Support macro to define a registry binary object item in program memory and variable in SRAM as reference.
[in] | type | variable data type. |
[in] | var | registry blob to create. |
[in] | name | string of registry item. |
[in] | value | of variable (initial). |
[in] | readonly | access. |
Definition at line 483 of file Registry.hh.
#define REGISTRY_END | ( | var | ) |
Support macro to complete a registry in program memory.
[in] | var | registry to create. |
Definition at line 426 of file Registry.hh.
#define REGISTRY_LIST_ITEM | ( | var | ) | &var.item, |
Support macro to add a registry item to an item list in program memory. The item can be any of the registry item types; ITEM, ITEM_LIST, ACTION and BLOB.
[in] | var | item reference to add. |
Definition at line 418 of file Registry.hh.
IOStream& operator<< | ( | IOStream & | outs, |
Registry::item_P | item | ||
) |
Print item to given output stream.
[in] | outs | output stream. |
[in] | item | registry item. |
Definition at line 149 of file Registry.cpp.
IOStream& operator<< | ( | IOStream & | outs, |
Registry::item_list_P | list | ||
) |
Print item list to given output stream.
[in] | outs | output stream. |
[in] | list | registry item list. |
Definition at line 194 of file Registry.cpp.