#include <bsoncxx/v_noabi/bsoncxx/validate.hpp>
A validator is used to enable or disable specific checks that can be performed during BSON validation. 
 | 
|   | validator () | 
|   | Constructs a validator.  
  | 
|   | 
|   | ~validator () | 
|   | Destructs a validator.  
  | 
|   | 
| bool  | check_dollar_keys () const | 
|   | Getter for the current check_dollar_keys value of the underlying validator.  
  | 
|   | 
| void  | check_dollar_keys (bool check_dollar_keys) | 
|   | Verifies that document keys are not preceeded with '$'.  
  | 
|   | 
| bool  | check_dot_keys () const | 
|   | Getter for the current check_dot_keys value of the underlying validator.  
  | 
|   | 
| void  | check_dot_keys (bool check_dot_keys) | 
|   | Verifies that document keys do not contain any '.' characters.  
  | 
|   | 
| bool  | check_utf8 () const | 
|   | Getter for the current check_utf8 value of the underlying validator.  
  | 
|   | 
| void  | check_utf8 (bool check_utf8) | 
|   | Verify that all keys and string values are valid UTF-8.  
  | 
|   | 
| bool  | check_utf8_allow_null () const | 
|   | Getter for the current check_utf8_allow_null value of the underlying validator.  
  | 
|   | 
| void  | check_utf8_allow_null (bool check_utf8_allow_null) | 
|   | Verify that all keys and string values are valid UTF-8, but allow null bytes. This is generally bad practice, but some languages such as Python, can sennd UTF-8 encoded strings with null bytes.  
  | 
|   | 
◆ validator()
      
        
          | bsoncxx::v_noabi::validator::validator  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ ~validator()
      
        
          | bsoncxx::v_noabi::validator::~validator  | 
          ( | 
           | ) | 
           | 
        
      
 
 
◆ check_dollar_keys() [1/2]
      
        
          | bool bsoncxx::v_noabi::validator::check_dollar_keys  | 
          ( | 
           | ) | 
           const | 
        
      
 
Getter for the current check_dollar_keys value of the underlying validator. 
- Returns
 - True if keys starting with '$' will be treated as invalid. 
 
 
 
◆ check_dollar_keys() [2/2]
      
        
          | void bsoncxx::v_noabi::validator::check_dollar_keys  | 
          ( | 
          bool |           check_dollar_keys | ) | 
           | 
        
      
 
Verifies that document keys are not preceeded with '$'. 
- Parameters
 - 
  
    | check_dollar_keys | If true, keys starting with '$' will be treated as invalid.  | 
  
   
 
 
◆ check_dot_keys() [1/2]
      
        
          | bool bsoncxx::v_noabi::validator::check_dot_keys  | 
          ( | 
           | ) | 
           const | 
        
      
 
Getter for the current check_dot_keys value of the underlying validator. 
- Returns
 - True if keys containing '.' will be treated as invalid. 
 
 
 
◆ check_dot_keys() [2/2]
      
        
          | void bsoncxx::v_noabi::validator::check_dot_keys  | 
          ( | 
          bool |           check_dot_keys | ) | 
           | 
        
      
 
Verifies that document keys do not contain any '.' characters. 
- Parameters
 - 
  
    | check_dot_keys | If true, keys containing '.' will be treated as invalid.  | 
  
   
 
 
◆ check_utf8() [1/2]
      
        
          | bool bsoncxx::v_noabi::validator::check_utf8  | 
          ( | 
           | ) | 
           const | 
        
      
 
Getter for the current check_utf8 value of the underlying validator. 
- Returns
 - True if UTF-8 validation is performed. 
 
 
 
◆ check_utf8() [2/2]
      
        
          | void bsoncxx::v_noabi::validator::check_utf8  | 
          ( | 
          bool |           check_utf8 | ) | 
           | 
        
      
 
Verify that all keys and string values are valid UTF-8. 
- Parameters
 - 
  
    | check_utf8 | If true, UTF-8 validation is performed.  | 
  
   
 
 
◆ check_utf8_allow_null() [1/2]
      
        
          | bool bsoncxx::v_noabi::validator::check_utf8_allow_null  | 
          ( | 
           | ) | 
           const | 
        
      
 
Getter for the current check_utf8_allow_null value of the underlying validator. 
- Returns
 - True if UTF-8 validation (with null bytes allowed) is performed. 
 
 
 
◆ check_utf8_allow_null() [2/2]
      
        
          | void bsoncxx::v_noabi::validator::check_utf8_allow_null  | 
          ( | 
          bool |           check_utf8_allow_null | ) | 
           | 
        
      
 
Verify that all keys and string values are valid UTF-8, but allow null bytes. This is generally bad practice, but some languages such as Python, can sennd UTF-8 encoded strings with null bytes. 
- Parameters
 - 
  
    | check_utf8_allow_null | If true, UTF-8 validation (with null bytes allowed) is performed.  | 
  
   
 
 
The documentation for this class was generated from the following file: