MongoDB  2.7.0
startup_option_init.h
1 /* Copyright 2013 10gen Inc.
2  *
3  * Licensed under the Apache License, Version 2.0 (the "License");
4  * you may not use this file except in compliance with the License.
5  * You may obtain a copy of the License at
6  *
7  * http://www.apache.org/licenses/LICENSE-2.0
8  *
9  * Unless required by applicable law or agreed to in writing, software
10  * distributed under the License is distributed on an "AS IS" BASIS,
11  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12  * See the License for the specific language governing permissions and
13  * limitations under the License.
14  */
15 
31 #pragma once
32 
33 #include "mongo/base/init.h"
34 
50 #define MONGO_GENERAL_STARTUP_OPTIONS_REGISTER(fname) \
51  MONGO_INITIALIZER_GENERAL(fname##_Register, \
52  ("BeginGeneralStartupOptionRegistration"), \
53  ("EndGeneralStartupOptionRegistration"))
54 
65 #define MONGO_MODULE_STARTUP_OPTIONS_REGISTER(fname) \
66  MONGO_INITIALIZER_GENERAL(fname##_Register, \
67  ("EndGeneralStartupOptionRegistration"), \
68  ("EndStartupOptionRegistration"))
69 
80 #define MONGO_STARTUP_OPTIONS_PARSE(fname) \
81  MONGO_INITIALIZER_GENERAL(fname##_Parse, \
82  ("BeginStartupOptionParsing"), \
83  ("EndStartupOptionParsing"))
84 
97 #define MONGO_STARTUP_OPTIONS_VALIDATE(fname) \
98  MONGO_INITIALIZER_GENERAL(fname##_Validate, \
99  ("BeginStartupOptionValidation"), \
100  ("EndStartupOptionValidation"))
101 
115 #define MONGO_STARTUP_OPTIONS_STORE(fname) \
116  MONGO_INITIALIZER_GENERAL(fname##_Store, \
117  ("BeginStartupOptionStorage"), \
118  ("EndStartupOptionStorage"))