forked from loafle/openapi-generator-original
[cpp][tiny] rename generator, update samples (#9560)
* rename generator, update samples * add doc * update readme
This commit is contained in:
22
samples/client/petstore/cpp-tiny/lib/Models/Helpers.h
Normal file
22
samples/client/petstore/cpp-tiny/lib/Models/Helpers.h
Normal file
@@ -0,0 +1,22 @@
|
||||
#ifndef TINY_CPP_CLIENT_HELPERS_H_
|
||||
#define TINY_CPP_CLIENT_HELPERS_H_
|
||||
|
||||
#include <string>
|
||||
#include "bourne/json.hpp"
|
||||
|
||||
bool isprimitive(std::string type);
|
||||
|
||||
void jsonToValue(void* target, bourne::json value, std::string type);
|
||||
|
||||
std::string stringify(long input);
|
||||
|
||||
std::string stringify(int input);
|
||||
|
||||
std::string stringify(double input);
|
||||
|
||||
std::string stringify(float input);
|
||||
|
||||
std::string stringify(std::string input);
|
||||
|
||||
#endif /* TINY_CPP_CLIENT_HELPERS_H_ */
|
||||
|
||||
Reference in New Issue
Block a user