Class
ArcadesComponent
Base of any ARCADES related object.
ArcadesComponent is a base class for any ARCADES class, providing default behavior for logging, string representation, dumping and loading.
- edit Alexis BRENON alexis.brenon@imag.fr
Data Types
keyboard_arrow_up-
Dump
Serializable dump of an object.
Todo:- Complete doc
-
InitArgument
Arguments used to instanciate a new object.
Todo:- Complete doc
Fields
keyboard_arrow_up-
table
_args
Table (shallow copy) of arguments used for instanciation
-
utils.Logger
_logger
Object's logger
See also: -
string
_name
Identifier name of the object
-
table
_no_dump_list
List of attributes that does not need to be dumped
Metamethods
keyboard_arrow_up-
__init ( args, dump )
Object constructor.
Instanciate a new ARCADES object.
Parameters:-
InitArgument
args
Table of attributes/arguments to pass to the object -
Dump
dump
Dump of an object to re-instanciate
-
InitArgument
-
__tostring__ ()
Get a string representation of the object.
Returns:- string A string representing the object
Public Methods
keyboard_arrow_up-
dump ( [cycles={}] )
-
load ( dump )
Static Functions
keyboard_arrow_up-
_dump ( [o[, cycles={}]] )
Dump an object.
Dump any object, avoiding cycles. The dump will contain any attribute excepted:
- functions
- attributes with name starting with
_
(underscore) - attributes with name present in _no_dump_list
If possible, tables and objects will be recurcively dumped.
Parameters:-
o
Object to dump (optional) -
table
cycles
Already dumped tables/objects (default{}
)
- table or nil A serializable table