PhoenixLecture  2.0.0
Set of tools to make lectures
PParserEnv Class Reference

Parser environement. More...

#include <PLatexObj.h>

+ Collaboration diagram for PParserEnv:

Public Member Functions

PStringgetName ()
 Gets the name of the PParserEnv. More...
 
const PStringgetName () const
 Gets the name of the PParserEnv. More...
 
PStringgetPlainText ()
 Gets the plainText of the PParserEnv. More...
 
const PStringgetPlainText () const
 Gets the plainText of the PParserEnv. More...
 
std::vector< PContext > & getVecContext ()
 Gets the vecContext of the PParserEnv. More...
 
const std::vector< PContext > & getVecContext () const
 Gets the vecContext of the PParserEnv. More...
 
PParserEnvoperator= (const PParserEnv &other)
 Operator = of class PParserEnv. More...
 
 PParserEnv ()
 Constructor of class PParserEnv. More...
 
 PParserEnv (const PParserEnv &other)
 Copy Constructor of class PParserEnv. More...
 
void setName (const PString &name)
 Sets the name of the PParserEnv. More...
 
void setPlainText (const PString &plainText)
 Sets the plainText of the PParserEnv. More...
 
void setVecContext (const std::vector< PContext > &vecContext)
 Sets the vecContext of the PParserEnv. More...
 
virtual ~PParserEnv ()
 Destructor of class PParserEnv. More...
 

Protected Member Functions

void copyPParserEnv (const PParserEnv &other)
 Copy Function of class PParserEnv. More...
 

Private Member Functions

void initialisationPParserEnv ()
 Initialisation Function of class PParserEnv. More...
 

Private Attributes

PString p_name
 Name of the environement. More...
 
PString p_plainText
 List of character to be found in a plain text sequence. More...
 
std::vector< PContextp_vecContext
 Vector of context for the environement. More...
 

Detailed Description

Parser environement.

Definition at line 363 of file PLatexObj.h.

Constructor & Destructor Documentation

◆ PParserEnv() [1/2]

PParserEnv::PParserEnv ( )

Constructor of class PParserEnv.

Definition at line 1423 of file PLatexObj.cpp.

1423  {
1425 }
void initialisationPParserEnv()
Initialisation Function of class PParserEnv.
Definition: PLatexObj.cpp:1521

References initialisationPParserEnv().

+ Here is the call graph for this function:

◆ PParserEnv() [2/2]

PParserEnv::PParserEnv ( const PParserEnv other)

Copy Constructor of class PParserEnv.

Parameters
other: PParserEnv we want ot copy

Definition at line 1430 of file PLatexObj.cpp.

1430  {
1431  copyPParserEnv(other);
1432 }
void copyPParserEnv(const PParserEnv &other)
Copy Function of class PParserEnv.
Definition: PLatexObj.cpp:1514

References copyPParserEnv().

+ Here is the call graph for this function:

◆ ~PParserEnv()

PParserEnv::~PParserEnv ( )
virtual

Destructor of class PParserEnv.

Definition at line 1435 of file PLatexObj.cpp.

1435  {
1436 
1437 }

Member Function Documentation

◆ copyPParserEnv()

void PParserEnv::copyPParserEnv ( const PParserEnv other)
protected

Copy Function of class PParserEnv.

Parameters
other: PParserEnv we want ot copy

Definition at line 1514 of file PLatexObj.cpp.

1514  {
1515  p_name = other.p_name;
1516  p_plainText = other.p_plainText;
1517  p_vecContext = other.p_vecContext;
1518 }
PString p_plainText
List of character to be found in a plain text sequence.
Definition: PLatexObj.h:385
std::vector< PContext > p_vecContext
Vector of context for the environement.
Definition: PLatexObj.h:387
PString p_name
Name of the environement.
Definition: PLatexObj.h:383

References p_name, p_plainText, and p_vecContext.

Referenced by operator=(), and PParserEnv().

+ Here is the caller graph for this function:

◆ getName() [1/2]

PString & PParserEnv::getName ( )

Gets the name of the PParserEnv.

Returns
name of the PParserEnv

Definition at line 1479 of file PLatexObj.cpp.

1479  {
1480  return p_name;
1481 }

References p_name.

◆ getName() [2/2]

const PString & PParserEnv::getName ( ) const

Gets the name of the PParserEnv.

Returns
name of the PParserEnv

Definition at line 1472 of file PLatexObj.cpp.

1472  {
1473  return p_name;
1474 }

References p_name.

◆ getPlainText() [1/2]

PString & PParserEnv::getPlainText ( )

Gets the plainText of the PParserEnv.

Returns
plainText of the PParserEnv

Definition at line 1493 of file PLatexObj.cpp.

1493  {
1494  return p_plainText;
1495 }

References p_plainText.

◆ getPlainText() [2/2]

const PString & PParserEnv::getPlainText ( ) const

Gets the plainText of the PParserEnv.

Returns
plainText of the PParserEnv

Definition at line 1486 of file PLatexObj.cpp.

1486  {
1487  return p_plainText;
1488 }

References p_plainText.

Referenced by parser_makeHighlighting().

+ Here is the caller graph for this function:

◆ getVecContext() [1/2]

std::vector< PContext > & PParserEnv::getVecContext ( )

Gets the vecContext of the PParserEnv.

Returns
vecContext of the PParserEnv

Definition at line 1507 of file PLatexObj.cpp.

1507  {
1508  return p_vecContext;
1509 }

References p_vecContext.

◆ getVecContext() [2/2]

const std::vector< PContext > & PParserEnv::getVecContext ( ) const

Gets the vecContext of the PParserEnv.

Returns
vecContext of the PParserEnv

Definition at line 1500 of file PLatexObj.cpp.

1500  {
1501  return p_vecContext;
1502 }

References p_vecContext.

Referenced by PGenericParser::loadDirExtraParserFile(), and parser_parseKeyword().

+ Here is the caller graph for this function:

◆ initialisationPParserEnv()

void PParserEnv::initialisationPParserEnv ( )
private

Initialisation Function of class PParserEnv.

Definition at line 1521 of file PLatexObj.cpp.

1521  {
1522  p_name = "";
1523  p_plainText = "";
1524 }

References p_name, and p_plainText.

Referenced by PParserEnv().

+ Here is the caller graph for this function:

◆ operator=()

PParserEnv & PParserEnv::operator= ( const PParserEnv other)

Operator = of class PParserEnv.

Parameters
other: PParserEnv we want ot copy
Returns
copied class PParserEnv

Definition at line 1443 of file PLatexObj.cpp.

1443  {
1444  copyPParserEnv(other);
1445  return *this;
1446 }

References copyPParserEnv().

+ Here is the call graph for this function:

◆ setName()

void PParserEnv::setName ( const PString name)

Sets the name of the PParserEnv.

Parameters
name: name of the PParserEnv

Definition at line 1451 of file PLatexObj.cpp.

1451  {
1452  p_name = name;
1453 }

References p_name.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setPlainText()

void PParserEnv::setPlainText ( const PString plainText)

Sets the plainText of the PParserEnv.

Parameters
plainText: plainText of the PParserEnv

Definition at line 1458 of file PLatexObj.cpp.

1458  {
1459  p_plainText = plainText;
1460 }

References p_plainText.

Referenced by PGenericParser::loadDirExtraParserFile().

+ Here is the caller graph for this function:

◆ setVecContext()

void PParserEnv::setVecContext ( const std::vector< PContext > &  vecContext)

Sets the vecContext of the PParserEnv.

Parameters
vecContext: vecContext of the PParserEnv

Definition at line 1465 of file PLatexObj.cpp.

1465  {
1466  p_vecContext = vecContext;
1467 }

References p_vecContext.

Member Data Documentation

◆ p_name

PString PParserEnv::p_name
private

Name of the environement.

Definition at line 383 of file PLatexObj.h.

Referenced by copyPParserEnv(), getName(), initialisationPParserEnv(), and setName().

◆ p_plainText

PString PParserEnv::p_plainText
private

List of character to be found in a plain text sequence.

Definition at line 385 of file PLatexObj.h.

Referenced by copyPParserEnv(), getPlainText(), initialisationPParserEnv(), and setPlainText().

◆ p_vecContext

std::vector<PContext> PParserEnv::p_vecContext
private

Vector of context for the environement.

Definition at line 387 of file PLatexObj.h.

Referenced by copyPParserEnv(), getVecContext(), and setVecContext().


The documentation for this class was generated from the following files: