BT-MatML-Editor 0.1.4
Editor for the MatML 3.1 XML Schema
BT_MatML_StringValidator.h
1
2// Name: BT_MatML_StringValidator.h
3// Purpose: Classes of StringValidator.
4// Author: Paul McGrath
5// Modified by:
6// Created:
7// Copyright: (c) Paul McGrath
8// Licence: CC licence
10#pragma once
11
12#include <string>
13#include <list>
14
15#include <boost/lexical_cast.hpp>
16#include <boost/algorithm/string.hpp>
17#include <boost/algorithm/string/classification.hpp>
18
19namespace bellshire {
20
21
23 {
24 public:
25 StringValidator() {};//ctor
26 ~StringValidator() {};//dtor
27
28 bool ValidateString(
29 ::std::string input,
30 ::std::string Format,
31 ::std::string Delimiter,
32 bool NewLineRemoval,
33 ::std::string* msg
34 );
35
36 template<typename T> bool isValid(const std::string& num);
37
38 };
39
40}//bellshire namespace
Definition: BT_MatML_StringValidator.h:23
Contains the GUI and GUI associated classes. OnInit() calls the creation of the MaterialFrame GUI
Definition: BT_MatML_App.h:39