PointOfViewBalance.h header

#include <ew/app/PointOfViewBalance.h>

Namespace ew::app

PointOfViewShare struct

struct ew::app::PointOfViewShare

The share of the manuscript written from one point of view: how many words and scenes (documents with any words) are told from that character's perspective. An empty pointOfView is the "unassigned" bucket – scenes with words but no point of view set.

Members

QString ew::app::PointOfViewShare::pointOfView

The point-of-view character's name, or empty for unassigned scenes.

int ew::app::PointOfViewShare::words = 0

Total words written from this point of view.

int ew::app::PointOfViewShare::scenes = 0

Number of scenes (documents with words) told from this point of view.

Functions

std::vector< PointOfViewShare > ew::app::pointOfViewBalance(const ew::core::Project &project)

The point-of-view balance of project: one entry per distinct point of view found across documents that have words, ordered by word count descending (ties broken by name). Scenes with no words are ignored, so empty containers do not skew the balance.