aboutsummaryrefslogtreecommitdiff
path: root/common/access/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2012-08-16 12:23:25 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2012-08-16 12:23:25 +0200
commit19a3dfd0bcb583e246f83a9c01f9218a8b41fd3c (patch)
treebc1fbb76c20a844f298717ed1d2271656e03e571 /common/access/makefile
parentda9f37e292c9f490e0c0e9b467114d5df70a9a53 (diff)
Add support for automatically discovering accessor/modifier functions
New options: --{accessor,modifier}-regex, --{accessor,modifier}-regex-trace.
Diffstat (limited to 'common/access/makefile')
-rw-r--r--common/access/makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/access/makefile b/common/access/makefile
index 674128d..3cf2953 100644
--- a/common/access/makefile
+++ b/common/access/makefile
@@ -35,7 +35,8 @@ gen := $(addprefix $(out_base)/,$(genf))
$(gen): $(odb)
$(gen): odb := $(odb)
$(gen) $(dist): export odb_options += --database $(db_id) --generate-schema \
---table-prefix access_
+--table-prefix access_ --accessor-regex "/(.+)/Get\u\1/" \
+--modifier-regex "/(.+)/Set\u\1/"
$(gen): cpp_options := -I$(src_base)
$(gen): $(common.l.cpp-options)