Teuchos Package Browser (Single Doxygen Collection)  Version of the Day
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Functions
custom_validator_xml.cpp File Reference
#include "Teuchos_ParameterList.hpp"
#include "Teuchos_Array.hpp"
#include "Teuchos_Version.hpp"
#include "Teuchos_ParameterEntryXMLConverterDB.hpp"
#include "Teuchos_XMLParameterListCoreHelpers.hpp"
#include "Teuchos_StandardParameterEntryValidators.hpp"
#include "Teuchos_ValidatorXMLConverterDB.hpp"
#include "Teuchos_StandardValidatorXMLConverters.hpp"
#include <iostream>
Include dependency graph for custom_validator_xml.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

int main ( int  argc,
char *  argv[] 
)

When parameterlists get written or read from XML, any validators associated with a parameter entry go with it. If you're using a validator that isn't part of the standard set of validators, then you'll get an error. You need to add a converter for it.

Final Notes: StandardTemplatedParameterConverter should suit most your needs. Buf if for some reason you don't feel like overrideing the inseration and extraction operators, you can allways subclass the ParameterEntryXMLConverter class and do your own thing.

Definition at line 28 of file custom_validator_xml.cpp.