File: storage1.cc

package info (click to toggle)
oxref 2.02.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 692 kB
  • sloc: cpp: 1,282; makefile: 131; sh: 48
file content (16 lines) | stat: -rw-r--r-- 501 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "storage.ih"

Storage::Storage()
:
    d_arg(Arg::instance())
{
    string spec;                            // process all 'R' replacements
    for (size_t idx = 0, end = d_arg.option('R'); idx != end; ++idx)
    {
        d_arg.option(idx, &spec, 'R');      // get the spec
        storeReplacement("-R option", spec);    // store it.
    }

    if (d_arg.option(&spec, 'r'))           // replacements file?
        replacementFile(spec);                  // then process its replacements
}