| 131 | -> clock_type::duration; |
| 132 | |
| 133 | any_impl( |
| 134 | string_view base_name, |
| 135 | string_view flavor, |
| 136 | bool is_boost, |
| 137 | bool is_pool, |
| 138 | bool with_file_io, |
| 139 | parse_options const& popts) |
| 140 | : popts_(popts) |
| 141 | , with_file_io_(with_file_io) |
| 142 | { |
| 143 | std::string extra; |
| 144 | switch( popts_.numbers ) |
| 145 | { |
| 146 | case number_precision::precise: |
| 147 | extra = "precise numbers"; |
| 148 | break; |
| 149 | case number_precision::none: |
| 150 | extra = "no numbers"; |
| 151 | break; |
| 152 | default: |
| 153 | break; |
| 154 | } |
| 155 | |
| 156 | if( with_file_io_ ) |
| 157 | { |
| 158 | if( !extra.empty() ) |
| 159 | extra += '+'; |
| 160 | extra += "file IO"; |
| 161 | } |
| 162 | |
| 163 | if( is_pool ) |
| 164 | { |
| 165 | if( !extra.empty() ) |
| 166 | extra = '+' + extra; |
| 167 | extra = "pool" + extra; |
| 168 | } |
| 169 | |
| 170 | if( !flavor.empty() ) |
| 171 | { |
| 172 | if( !extra.empty() ) |
| 173 | extra = '+' + extra; |
| 174 | extra.insert( extra.begin(), flavor.begin(), flavor.end() ); |
| 175 | } |
| 176 | |
| 177 | if( !extra.empty() ) |
| 178 | extra = " (" + extra + ')'; |
| 179 | |
| 180 | if( is_boost && !s_branch.empty() ) |
| 181 | extra += ' ' + s_branch; |
| 182 | |
| 183 | name_ = base_name; |
| 184 | name_ += extra; |
| 185 | } |
| 186 | |
| 187 | virtual ~any_impl() = default; |
| 188 | |