NDEVR
API Documentation
CustomModelBuilder.h
1#pragma once
2#include "BoilerMaker.h"
3#include <NDEVR/String.h>
4#include <NDEVR/File.h>
5#include <NDEVR/InfoPipe.h>
6#include <NDEVR/LogMessage.h>
7namespace NDEVR
8{
68}
Reads a boilerplate copyright/license header template and applies file-specific substitutions,...
Definition BoilerMaker.h:11
Generates boilerplate header and source files for a custom Model subclass, optionally including a com...
String modelHeaderString() const
Generates the model header file content as a string.
String modelLogicSourceString() const
Generates the model logic source file content as a string.
String modelSourceString() const
Generates the model source file content as a string.
void createHeader(File &file) const
Creates the model header file.
BoilerMaker boiler_maker
Boilerplate template generator.
String typeName() const
Returns the model type name used for registration.
String class_name
The derived class name (computed lazily).
File ui_directory
The directory for generated UI files.
bool generate_behavior
Whether to also generate a behavior class.
String modelLogicHeaderString() const
Generates the model logic header file content as a string.
File source_directory
The directory where generated source files are placed.
bool createFiles()
Generates all model and behavior files.
String model_name
The human-readable model name.
String type_name
The model type identifier (computed lazily).
void createCustomBehaviorHeader(File &file) const
Creates the custom behavior header file.
LogPtr log
Log for status messages.
String model_project_name
The project that owns the model class.
void createSource(File &file) const
Creates the model source file.
void createCustomBehaviorSource(File &file) const
Creates the custom behavior source file.
String className() const
Returns the computed class name for the model.
String customLogicClassName() const
Returns the class name for the custom behavior logic.
String headerPath() const
Returns the relative header path for the model class.
String behavior_project_name
The project that owns the behavior class.
String customBehaviorHeaderPath() const
Returns the relative header path for the custom behavior class.
Logic for reading or writing to a file as well as navigating filesystems or other common file operati...
Definition File.h:53
A light-weight wrapper that will be a no-op if there is not a valid log reference,...
The core String class for the NDEVR API.
Definition String.h:95
The primary namespace for the NDEVR SDK.
@ file
The source file path associated with this object.