Opened 14 years ago

Closed 14 years ago

#106 closed task (fixed)

Config class holding appropriate information

Reported by: Peter Johansson Owned by: Peter Johansson
Priority: critical Milestone: 0.6
Component: core Version: trunk
Keywords: Cc:

Description

It makes no sense to have several configurations, and thus this should be implemented as a singleton. Also it makes the object reachable. The object should be loaded in Parameter.

How should format of config file be?

ref #98

Change History (3)

comment:1 Changed 14 years ago by Peter Johansson

Status: newassigned

Stupid!

This is of course the Parameter class, but it should be a singleton.

And it should also read the config file.

comment:2 Changed 14 years ago by Peter Johansson

Parameter is located in bin, which implies the class can only be used by main. I am uncertian whether this is designed on purpose, but I will keep Parameter in bin/ as for now. If we ever need to pass around an object with options we have to decide whether to move Parameter to lib/ or to create a Config class in lib that then can be passed around. For now I don't need to pass the whole object but a const map is enough to hold copyright aliases.

comment:3 Changed 14 years ago by Peter Johansson

Resolution: fixed
Status: assignedclosed

closed in [226]

Note: See TracTickets for help on using tickets.